![]() |
|
|
|
#1
|
|||
|
|||
|
Dear Paul,
hope you are doing good, here I have a query as in Code:
'Replace the found text, asking first
Do While .Find.Found
.Duplicate.Select
Rslt = MsgBox("Replace this instance of:" & vbCr & _
Split(xlFList, "|")(i) & vbCr & "with:" & vbCr & _
Split(xlRList, "|")(i), vbYesNoCancel)
If Rslt = vbCancel Then Exit Sub
If Rslt = vbYes Then .Text = Split(xlRList, "|")(i)
.Collapse wdCollapseEnd
.Find.Execute
Loop
End With
as last night I was working on a doc fie and it had around 300+ same text which need to replaced, and I was ding one by one using macro. Thanks, Nancy
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Can Word 2007 support graphs?
|
burnsie | Drawing and Graphics | 1 | 07-08-2011 07:08 AM |
| Word 2003 macro to Word 2007 to 2010 to... | maruapo | Word VBA | 0 | 06-04-2010 03:43 PM |
| does office word 2007 support html signature! | jimijani1982 | Word | 2 | 05-04-2010 04:37 AM |
| [Word 2003] Macro's and a UserForm | xanuex | Word VBA | 0 | 10-19-2009 05:42 AM |
| Problem with AutoClose macro and Word 2003 | cholo | Word VBA | 0 | 07-08-2009 05:48 AM |