![]() |
|
#2
|
||||
|
||||
|
Perhaps:
Code:
Sub Demo()
With ActiveDocument.Range
With .Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "^+"
.Replacement.Text = ""
.Forward = True
.Format = False
.MatchWildcards = False
.Wrap = wdFindStop
.Execute
End With
Do While .Find.Found = True
With .Duplicate
.Start = .Paragraphs.First.Range.Start
.End = .End - 1
.Font.Bold = True
End With
.Collapse wdCollapseEnd
.Find.Execute
Loop
End With
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Two problems: Applying bold affects other tables and canvas doesn't appear at specified range | slaycock | Word VBA | 6 | 12-08-2016 02:28 AM |
Bold a sentence containing an em dash
|
jeffreybrown | Word | 8 | 09-08-2016 05:47 PM |
Reverse Bold macro
|
brent chadwick | Word VBA | 15 | 02-26-2016 05:25 PM |
| Macro Needed to bold specific lines and Macro to turn into CSV | anewteacher | Word VBA | 1 | 05-28-2014 03:59 PM |
Need Word to change -- (dash,dash) into one long dash.
|
Bobosmite | Word | 2 | 05-06-2011 04:21 AM |