In a Word macro for a header and footer, I want to have two lines on the header. I need in some way to declare char(10).
This is what I have, but the second line - the fullpoints as a dotted rule - doesn't appear.
Be very grateful for some advice.
This is what I have, but the second line - the fullpoints as a dotted rule - doesn't appear.
Code:
Sub HeaderFooterObjectBest_English()
Dim MyText As String
MyHeaderText = "..........................."
MyHeaderText = "Paul | new words for the week | Best-English.org | 1 of 1"
MyFooterText = "Best-English dot org"
Selection.Font.Name = "Courier New"
Selection.Font.Size = 9
With ActiveDocument.Sections(1)
.Headers(wdHeaderFooterPrimary).Range.Text = MyHeaderText
.Footers(wdHeaderFooterPrimary).Range.Text = MyFooterText
End With
End Sub
Be very grateful for some advice.