![]() |
|
#1
|
|||
|
|||
![]() 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 |
#2
|
|||
|
|||
![]()
thank you to all
i will try everything tomorrow KRs ron |
#3
|
|||
|
|||
![]()
it works !
brill !!! thanks guys |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
jackcoletti | Word | 3 | 02-01-2017 08:10 AM |
![]() |
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 |