I am using XP-PRO and Office 2010. I am having problems with the syntax when building the header for printing. I currently have the following code,
With ActiveSheet.PageSetup
.LeftHeader = "Data as of:" & Chr(10) & vGenDate
.CenterHeader = _
" &B&""Comic Sans MS""&14Supposed to be line 1 &B&""Ariel""&10 Suppose to be line 2 Suppose to be line 3 with " & vGenLoc
End With
The LeftHeader prints fine on two lines, but the CenterHeader is currently printing with the correct fonts, size, and bold characteristics, but as one continuous line because I cannot get the system to recognize my carriage return /line feed. ( chr(10) )
How should they be included?
Ideally someone will come up with this code;
With ActiveSheet.PageSetup
.CenterHeader = _
vLine01 _
vLine02 _
vLine03
End with
where all the print characteristics (Font, Size, Bold, NewLine, etc) are built into the Line variables.
THANKS!
With ActiveSheet.PageSetup
.LeftHeader = "Data as of:" & Chr(10) & vGenDate
.CenterHeader = _
" &B&""Comic Sans MS""&14Supposed to be line 1 &B&""Ariel""&10 Suppose to be line 2 Suppose to be line 3 with " & vGenLoc
End With
The LeftHeader prints fine on two lines, but the CenterHeader is currently printing with the correct fonts, size, and bold characteristics, but as one continuous line because I cannot get the system to recognize my carriage return /line feed. ( chr(10) )
How should they be included?
Ideally someone will come up with this code;
With ActiveSheet.PageSetup
.CenterHeader = _
vLine01 _
vLine02 _
vLine03
End with
where all the print characteristics (Font, Size, Bold, NewLine, etc) are built into the Line variables.
THANKS!