![]() |
#1
|
|||
|
|||
![]()
Hi All,
I have selected one para and i need to find and replace something like below but it replaces in all places in the document rather than within that range/selection. In the below code instead "myrange" if i use "Selection." then also i get the same result. Please help me. With myrange.Find .text = "<([0-9]{1,5})>([-|^=])<([0-9]{1,5})>" .Replacement.text = "<Pages>^&</Pages>" .Forward = True .Wrap = wdFindContinue .Format = False .MatchCase = False .MatchWildcards = True End With Do While myrange.Find.Execute msgbox(selection.text) Loop |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
find and replace | anil3b2 | Word | 0 | 08-03-2010 11:30 PM |
help with find and replace | sjkiss | Word | 1 | 04-12-2010 08:08 AM |
find and replace graphics | thegeester | Drawing and Graphics | 0 | 04-04-2010 04:36 AM |
Find /Replace Help | ilcaa | Word | 2 | 11-02-2009 08:41 AM |
Find and Replace Macro - A Better Way | Tribos | Word VBA | 0 | 10-08-2008 03:22 AM |