| || |
automating word using vbscript
I am creating a report in Microsoft word using vbscript.
Can anyone tell me how to apply "heading 1" style to text?
Right now I have:
objSelection.Font.Name = "Arial"
objSelection.Font.Size = "18"
I want to make the text "summary" a heading. I have tried
objSelection.Style = ActiveDocument.Styles("Heading 1") but it doesn't work.
Thanks in advance!
Re: automating word using vbscript
OK i figured it out. here it is if anyone else needs it:
objSelection.Style = "Heading 1"