![]() |
#6
|
|||
|
|||
![]()
This finds text between quotes and bolds the text leaving the quotes unbolded:
Code:
Sub SearchInQuotes() Dim bWC As Boolean Dim oRng As Word.Range Set oRng = ActiveDocument.Range With oRng.Find .MatchWildcards = True 'find curly '.Text = "^0147*^0148" 'Find straight '.Text = "^34*^34" 'Find both .Text = "[^34^0147]*[^34^0148]" While .Execute oRng.MoveStart wdCharacter, 1 oRng.MoveEnd wdCharacter, -1 oRng.Font.Bold = True oRng.Collapse wdCollapseEnd Wend End With End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Carchee | Word VBA | 14 | 12-19-2013 04:36 PM |
![]() |
redhin | Word VBA | 5 | 03-05-2013 05:42 AM |
![]() |
ubns | Word VBA | 7 | 08-16-2012 10:33 PM |
![]() |
clisco | Word | 5 | 01-03-2010 05:57 AM |