Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Option Explicit Sub CollectHighlights() Dim rng As Range Dim strText As String Set rng = ActiveDocument.Range Do With rng.Find .Highlight = True .Forward = True .Wrap = wdFindStop .Format = True If .Execute Then strText = strText & rng.Text & vbCr rng.Collapse wdCollapseEnd rng.End = ActiveDocument.Range.End Else Exit Do End If End With Loop While True MsgBox strText End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.