I am trying to set the font and the cell reference for the footer in VBA. I have it working, except for the cell reference. I have a value in Z1 (it is actually "*"&W5&"--"&W6&"*"), but it will not display the value, it just prints "Z1" in the footer.
Any advice on what I am doing wrong?
Any advice on what I am doing wrong?
Code:
Private Sub Workbook_BeforePrint(Cancel As Boolean)
' Created by LJ Wilson
' 2009-04-21
'
With ActiveSheet.PageSetup
.LeftFooter = _
"&""Free 3 of 9 Extended,Regular""&54*ANES.REC*&""Geneva,Regular""&18" & Chr(10) & "ANES.REC"
.RightFooter = _
"&""Free 3 of 9 Extended,Regular""&54" & Range("Z1").Value & Chr(10) & "&""Arial,Regular""&18" & Range("Z1").Value
End With
End Sub