I am trying to format the last paragraph of a Word file with vba (part of a script I am putting together) but not managing to change the formatting of that text.
I am using: DocFile.Paragraphs.Last.Range.Style = wdStyleHeading1
Any advice you would have?
I have tried applying bold style to the text and it works, which tells me the selection of the last paragraph works.
New contributor
Nicolas is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.