![]() |
#3
|
||||
|
||||
![]()
For a different way of approaching the problem, try something along the lines of:
Code:
Sub Demo() Application.ScreenUpdating = False Dim StrOut As String With ActiveDocument.Range With .Find .ClearFormatting .Replacement.ClearFormatting .Text = "" .Replacement.Text = "" .Forward = True .Wrap = wdFindStop .Format = True .Font.Bold = True .MatchWildcards = False .Execute End With Do While .Find.Found StrOut = StrOut & vbCr & .Text .Collapse wdCollapseEnd .Find.Execute Loop End With While InStr(StrOut, vbCr & vbCr) > 0 StrOut = Replace(StrOut, vbCr & vbCr, vbCr) Wend Application.ScreenUpdating = True MsgBox "The document contains the following bold text:" & StrOut End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Pluviophile | Word | 7 | 10-22-2013 10:29 AM |
Format Bold in one line makes all lines bold | Nitte | Word | 2 | 02-07-2013 12:34 AM |
![]() |
Sorcerer13 | Word | 1 | 09-04-2012 11:08 AM |
Export Outlook emails to Access & parse certain text elements | smahale | Outlook | 0 | 01-18-2012 09:30 PM |
parse, store and email a .tmp file from wordpad? | scadaman29325 | Office | 0 | 09-28-2010 04:56 PM |