![]() |
|
#5
|
|||
|
|||
|
Code:
Sub Demo()
Dim oRng As Range
Set oRng = ActiveDocument.Range
With oRng.Find
.ClearFormatting
.Text = "/\*{1}*/\*{1}"
.MatchWildcards = True
While .Execute
oRng.Start = oRng.Start + 2
oRng.End = oRng.End - 2
oRng.Style = ActiveDocument.Styles("Strong") 'replace with your style
oRng.End = oRng.End + 2
oRng.Collapse wdCollapseEnd
Wend
End With
lbl_Exit:
Exit Sub
End Sub
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Text Field [content control] - Default text color vs Filled Text color
|
jackcoletti | Word | 3 | 02-01-2017 08:10 AM |
Drawing lines between text boxes which have actual text within the text boxes
|
RHODIUM | Word | 6 | 10-01-2016 04:43 PM |
| Compare text from Bookmark with text from Text box | Byron Polk | Word VBA | 4 | 07-30-2014 06:18 AM |
| Ink tools graying out randomly | andyjames | PowerPoint | 1 | 01-09-2013 12:54 AM |