M
Mickey
Hi,
I've done this before but seem to be doing something wrong now. I want
change the date in a bunch of docs.
I'm using the following code. It changes it in the first doc but doesn't
move to the next.
For Each aDoc In Documents
With Selection.Find
.Text = "01/29/07"
.Replacement.Text = "03/01/07"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.Execute Replace:=wdReplaceAll
End With
ActiveDocument.Save
ActiveDocument.Close
Next aDoc
Thanks,
Mickey
I've done this before but seem to be doing something wrong now. I want
change the date in a bunch of docs.
I'm using the following code. It changes it in the first doc but doesn't
move to the next.
For Each aDoc In Documents
With Selection.Find
.Text = "01/29/07"
.Replacement.Text = "03/01/07"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.Execute Replace:=wdReplaceAll
End With
ActiveDocument.Save
ActiveDocument.Close
Next aDoc
Thanks,
Mickey