J
Jack
If I use the find and replace command within Word to replace text including
text within a shape object) everything works.
But when I place the code in a vba module it doesnt find the text in any
shape objects.
My code is
ActiveDocument.Content.Select
With Selection.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "Year"
.Replacement.Text = "2007"
.Forward = True
.Wrap = wdFindAsk 'wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Any suggestions would be appreciated
jack
text within a shape object) everything works.
But when I place the code in a vba module it doesnt find the text in any
shape objects.
My code is
ActiveDocument.Content.Select
With Selection.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "Year"
.Replacement.Text = "2007"
.Forward = True
.Wrap = wdFindAsk 'wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Any suggestions would be appreciated
jack