#1
|
|||
|
|||
One line find execute in this case is possible?
Is that possible to modify those lines to a single line find.execute command?
Thanks Code:
With Activedocument.StoryRanges(wdMainTextStory).Find .Text = "Hi there*Here" With .Replacement .Text = "^&" .Font.Size = 11 End With .Wrap = wdFindContinue .Format = True .MatchWildcards = True .Execute Replace:=wdReplaceAll End With
__________________
Backup your original file before doing any modification. |
#2
|
|||
|
|||
No it is not.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How do I convert a line of text to title case? | neilfxb | Word | 21 | 02-22-2023 12:47 PM |
VBA to convert a line of text to title case | jeffreybrown | Word VBA | 14 | 09-09-2019 05:37 AM |
How to avoid find.execute moving focus and restore exact view after search | diracsbracket | Word VBA | 3 | 10-30-2016 03:17 AM |
Find incorrect upper case while leaving correct ones? | WaltR | Word | 2 | 02-23-2015 09:09 PM |
Find and Execute | cksm4 | Word VBA | 1 | 10-22-2011 11:36 PM |