L
LEU
When I convert documents my styles are as follows:
Level 1
Level 1 + Underline
Level 2
Level 2 + Underline
and so on.
How do I make them all just Level 1, Level 2 and so on? If I record a macro
using Find and Replace, it does not work the next time I use it. It does not
see the difference between Level 1 and Level 1 + Underline. This is what it
records:
Selection.Find.ClearFormatting
Selection.Find.Style = ActiveDocument.Styles("Level 1")
Selection.Find.Replacement.ClearFormatting
Selction.Find.Replacement.Style = ActiveDocument.Styles("Level 1")
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Level 1
Level 1 + Underline
Level 2
Level 2 + Underline
and so on.
How do I make them all just Level 1, Level 2 and so on? If I record a macro
using Find and Replace, it does not work the next time I use it. It does not
see the difference between Level 1 and Level 1 + Underline. This is what it
records:
Selection.Find.ClearFormatting
Selection.Find.Style = ActiveDocument.Styles("Level 1")
Selection.Find.Replacement.ClearFormatting
Selction.Find.Replacement.Style = ActiveDocument.Styles("Level 1")
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll