Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
I'm trying to write VBA code that will find the next instance of text in a
specific format. The script below works for font.name ="Arial" and font.name ="Times New Roman", but for some reason it refuses to work for font.name = "Courier" or font.name = "Courier New". Any ideas? Thanks in advance. ActiveDocument.Activate With Selection.Find .ClearFormatting .Text = "" .Replacement.Text = "" .Font.Name = "Times New Roman" .Forward = True .Wrap = wdFindContinue .Format = True .MatchCase = False .MatchWholeWord = True .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute End Sub |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Header with picture or text box | Page Layout | |||
Creating dynamic cross reference links in a Word document | Microsoft Word Help | |||
Arcane Question @ Text Boxes & "Frames" | Page Layout | |||
manipulating/cutting/pasting text out of a text box | Microsoft Word Help | |||
how do i automatically format specific text e.g apply a custom col | Microsoft Word Help |