M
MichaelB
Hello,
Using the below macro is there a way I can have it omit styles within
tables? I have a rather large document with several tables within which I do
not wish to alter. I do need to alter the “Normal†text within the document
to the “Paragraph 1†style but the Tables need to remain unchanged.
Any help would be greatly appreciated.
Thanks much..
Mike
Sub ReplaceExample()
Selection.HomeKey Unit:=wdStory
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
'
.Style = "Normal"
.Replacement.Style = " Paragraph 1"
'
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = False
End With
Selection.Find.Execute replace:=wdReplaceAll
End Sub
Using the below macro is there a way I can have it omit styles within
tables? I have a rather large document with several tables within which I do
not wish to alter. I do need to alter the “Normal†text within the document
to the “Paragraph 1†style but the Tables need to remain unchanged.
Any help would be greatly appreciated.
Thanks much..
Mike
Sub ReplaceExample()
Selection.HomeKey Unit:=wdStory
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
'
.Style = "Normal"
.Replacement.Style = " Paragraph 1"
'
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = False
End With
Selection.Find.Execute replace:=wdReplaceAll
End Sub