Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Jul 2002
    Location
    Aylesbury, Bucks, England
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Find/Replace in a macro (Word2003)

    Hi ... I have recorded a macro to replace all occurrences of string1 with string2 in a document - this works fine, but it then comes up with a dialog box saying
    " Word has finished searching the selection. xx replacements were made. Do you want to search the remainder of
    the document?" Yes/No ?

    Q: How can I suppress this (or automatically select the "No" option), or can someone suggest an alternative way of doing this ?

    -Tom
    (Word/Office 2003)

  2. #2
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Find/Replace in a macro (Word2003)

    Normally you manage this with <code>.Wrap = wdFindStop</code>, but if you share your code it will be easier to comment.

    StuartR

  3. #3
    New Lounger
    Join Date
    Jul 2002
    Location
    Aylesbury, Bucks, England
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Find/Replace in a macro (Word2003)

    Thanks Stuart - that worked fine

    -Tom

Posting Permissions

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