T
Tony Logan
Is there a way I can write the below code without refering ActiveDocument?
ActiveDocument.Styles("Normal").NoSpaceBetweenParagraphsOfSameStyle = True
I'm out of practice with VBA, and am running it inside a VB script that
creates some Word templates. However, this line causes the script to bomb.
The following code works just fine:
Dim objSelection
Set objSelection = Word.Selection
objSelection.Font.Name = "Arial"
objSelection.Font.Size = "14"
My goal is somehow to make NoSpaceBetweenParagraphsOfSameStyle = True.
Thanks.
ActiveDocument.Styles("Normal").NoSpaceBetweenParagraphsOfSameStyle = True
I'm out of practice with VBA, and am running it inside a VB script that
creates some Word templates. However, this line causes the script to bomb.
The following code works just fine:
Dim objSelection
Set objSelection = Word.Selection
objSelection.Font.Name = "Arial"
objSelection.Font.Size = "14"
My goal is somehow to make NoSpaceBetweenParagraphsOfSameStyle = True.
Thanks.