I am still a beginner with this. Can you tell my why this is not formatting the selection?
Selection.TypeText "title"
With Selection
.Font.Bold = True
.Font.Name = "Arial"
.Font.ColorIndex = wdDarkBlue
.ParagraphFormat.Alignment = wdAlignParagraphCenter
.ParagraphFormat.SpaceAfter = 0
End With
It does format the text, but only text added after the With Selection
command.
Change the order, put Selection.TypeText "title"
last, and it will work. :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With