Results 1 to 8 of 8
  1. #1
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    1,294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    is there a max chars in Find strings (Office 2002 SP3)

    Hi

    Is there a maximum number of characters that can be used in a find & replace string?

    my code does the following
    set the whole document as a range.
    then find some exact text which happens to be 8 lines (not full lines)
    & then replace the found text with exact text - which happens to be 8 lines (not full lines)
    then save & close the file.

    Or is there another way to do this?
    diana

  2. #2
    5 Star Lounger st3333ve's Avatar
    Join Date
    May 2003
    Location
    Los Angeles, California, USA
    Posts
    705
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: is there a max chars in Find strings (Office 2002 SP3)

    Your post is a little cryptic. Are you saying Word is failing to find and/or replace the string? Are you using "^p" for the paragraph marks (assuming your 8 lines are separate paragraphs)?

  3. #3
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    1,294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: is there a max chars in Find strings (Office 2002 SP3)

    HI

    I'm searching for the following:
    %

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: is there a max chars in Find strings (Office 2002 SP3)

    I'm not sure that the text came out as you intended, but based on the post "as is", you'd have to search for

    %

  5. #5
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    1,294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: is there a max chars in Find strings (Office 2002 SP3)

    Hi Hans

    thanks for that.
    is that going to fit in the search & replace strings? is there another way I can do it like with ranges?

    dianna

  6. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: is there a max chars in Find strings (Office 2002 SP3)

    It does fit in the Find What and Replace With boxes - I tested that. I don't know how ranges would help.

  7. #7
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    5,016
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: is there a max chars in Find strings (Office 2002 SP3)

    If the search/ replace dialog took a normal string as its arguments, there would be no problem:

    "There are two kinds of strings: variable-length and fixed-length strings.
    A variable-length string can contain up to approximately 2 billion (2^31) characters.
    A fixed-length string can contain 1 to approximately 64K (2^16) characters. "

    I seem to recall that the max. capacity of dialogs is limited to somewhat less than this though. ???

    Alan

  8. #8
    5 Star Lounger
    Join Date
    May 2001
    Location
    Stuttgart, Baden-W, Germany
    Posts
    931
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: is there a max chars in Find strings (Office 2002 SP3)

    I think it's still limited to 255 characters both in "Find what:" and "Replace with:".
    Haven't tried recently, though.

    In "Replace with:", you can get around that limit by pasting the clipboard content ^c.
    If you need more text in "Find what:", you'd need to find work-arounds -- like matching 255 characters at a time, or using string functions on the document text instead of Find.

    <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16> Klaus

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •