P
paoloricardo
I have the following macro, which is a bog standard starter example:
Sub SelectAndCentrePara3()
Dim rngParagraph As Range
Set rngParagraph = ActiveDocument.Paragraphs(3).Range
With rngParagraph
.ParagraphFormat.Alignment = wdAlignParagraphCenter
With .Font
.Bold = True
.Name = "Arial"
.Size = 15
End With
End With
End Sub
I have macros enabled in my Word document but when I run the macro all
that happens is that an extra line is inserted between the first and
second paragraphs of the document (which has 5 paragraphs).
I'd appreciate any indication of what might be wrong (I'm using Word
2007)
Thanks
Sub SelectAndCentrePara3()
Dim rngParagraph As Range
Set rngParagraph = ActiveDocument.Paragraphs(3).Range
With rngParagraph
.ParagraphFormat.Alignment = wdAlignParagraphCenter
With .Font
.Bold = True
.Name = "Arial"
.Size = 15
End With
End With
End Sub
I have macros enabled in my Word document but when I run the macro all
that happens is that an extra line is inserted between the first and
second paragraphs of the document (which has 5 paragraphs).
I'd appreciate any indication of what might be wrong (I'm using Word
2007)
Thanks