Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Apr 2005
    Location
    Houston, Texas, USA
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Use Find Next in VBA (Word 2002)

    I have a macro that calls up a table of find text and corresponding replacement text and runs on a document. I have a message box that asks the user if he wants to replace or not. The macro works but while it runs it stays on the first page of the document and never shows the finds. I can't figure out how to get the Find to stop in my document and highlight the Find Text so the user can see what he is replacing. I am sure there is an easy command, but I can't find it. There doesn't seem to be a Find Next command. Thanks.

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

    Re: Use Find Next in VBA (Word 2002)

    You might display the built-in replace dialog. Downside is that the user will be able to change the Find what and Replace with text.

    With Selection.Find
    .Text = ...
    .Replacement.Text = ...
    End With
    Application.Dialogs(wdDialogEditReplace).Show

  3. #3
    New Lounger
    Join Date
    Apr 2005
    Location
    Houston, Texas, USA
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Use Find Next in VBA (Word 2002)

    Thanks. That's a good idea. I will give that a try.

Posting Permissions

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