J
Jerry
I have this macro that displays the style name for all
paragraphs in a document. I use this to easily check to
make sure certain styles are used. Is there a way to
reverse this and have the style name removed?
Thanks
Sub TagParas()
Dim p As Paragraph
Dim sText As String
Dim sStyle As String
For Each p In ActiveDocument.Paragraphs
sStyle = p.Style
p.Range.InsertBefore "@" + sStyle + " = "
Next p
End Sub
paragraphs in a document. I use this to easily check to
make sure certain styles are used. Is there a way to
reverse this and have the style name removed?
Thanks
Sub TagParas()
Dim p As Paragraph
Dim sText As String
Dim sStyle As String
For Each p In ActiveDocument.Paragraphs
sStyle = p.Style
p.Range.InsertBefore "@" + sStyle + " = "
Next p
End Sub