Thanks MakeItSo,
Actually, the problem seemed to be the following statement...
Changed:
Selection.Style = ActiveDocument.Styles(wdStyleHeading2)
Selection.Text = Replace(Selection.Text, "L1-", "")
To:
Selection.Text = Replace(Selection.Text, "L1-", "")
Selection.Style =...
Hi all,
I'm using...
Selection.Style = ActiveDocument.Styles(wdStyleHeading2)
...to set the style of the current paragraph.
The Style Attributes are being set as you would expect (Arial, 14 Pt, Bold, Italic) but the Style Name is not being set.
Style shows as "Normal + Arial, 14 Pt, Bold...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.