G
Guest
I have 2 cells with values I want to print on a 2 line Center header with
different font sizes. The first value goes on line 1 of header with font size
22 and the second value on line 2 of header in font size 16. I can get two
literal text strings to format correctly but not the values in the following
cell references. I have also tried setting variables to the values and trying
to use them in the format statement. Can someone please provide the proper
syntax to get desired result. Thanks, Tom
Sheet1!b2
Sheet1!b4
I am having difficulty forming the proper syntax to the following statement:
--------------------------
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim wkSht As Worksheet
For Each wkSht In ThisWorkbook.Worksheets
wkSht.PageSetup.CenterHeader = > ...
Next wkSht
End Sub
---------------------------
different font sizes. The first value goes on line 1 of header with font size
22 and the second value on line 2 of header in font size 16. I can get two
literal text strings to format correctly but not the values in the following
cell references. I have also tried setting variables to the values and trying
to use them in the format statement. Can someone please provide the proper
syntax to get desired result. Thanks, Tom
Sheet1!b2
Sheet1!b4
I am having difficulty forming the proper syntax to the following statement:
--------------------------
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim wkSht As Worksheet
For Each wkSht In ThisWorkbook.Worksheets
wkSht.PageSetup.CenterHeader = > ...
Next wkSht
End Sub
---------------------------