View Single Post
 
Old 05-07-2016, 11:14 PM
equalizer88 equalizer88 is offline Windows 7 32bit Office 2010 32bit
Novice
 
Join Date: Jul 2015
Posts: 15
equalizer88 is on a distinguished road
Default

Thank you. I just had to change a tiny assembly language program and it was a lot easier to decipher than these objects!

If I had word files and need to search for bold, etc, why does the search I used below not find the search term?
Code:
With Selection.Find
      .ClearFormatting
      .Text = "first"
      .Forward = True
      .Wrap = wdFindContinue
      .Format = False
      .MatchCase = False
      .MatchWholeWord = False
      .MatchWildcards = False
      .MatchSoundsLike = False
      .MatchAllWordForms = False
    End With
    If Selection.Find.Execute Then
       Print #DestFileNum, wdDoc.Name
              
    End If
Reply With Quote