Results 1 to 4 of 4

Thread: Find and Replace in body of document and Footnotes

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Thanks so much Greg. It worked!

    Sub FindAndReplaceFirstStoryOfEachType()
      Dim rngStory As Range
      For Each rngStory In ActiveDocument.StoryRanges
        With rngStory.Find
            .Font.Color = wdColorRed
            .Replacement.Font.Color = wdColorAutomatic
            .Wrap = wdFindContinue
            .Execute Replace:=wdReplaceAll
        End With
      Next rngStory
    End Sub
    Last edited by Aussiebear; 04-19-2023 at 04:22 AM. Reason: Adjusted the code tags

Posting Permissions

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