Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MS Word application find and replace
#1
Hello,
I want integrate from vba to QM a "find and replace" macro recorded in ms word vba.

Code:
Copy      Help
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 27.04.2014 by Sergiu
'
    Selection.Find.ClearFormatting
    Selection.Find.Replacement.ClearFormatting
    With Selection.Find
        .Text = "x1"
        .Replacement.Text = "test"
        .Forward = True
        .Wrap = wdFindContinue
        .Format = False
        .MatchCase = False
        .MatchWholeWord = False
        .MatchWildcards = False
        .MatchSoundsLike = False
        .MatchAllWordForms = False
    End With
    Selection.Find.Execute
End Sub

I haven't found anything that could be helpful.

Thanks


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)