Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I can't get this code to work proper in the event. When I run the code by
itself, it works no problem, but when it is in the event, it runs through the code but does not update the footer, the code is in 'ThisWorkbook': Sub Workbook_Beforeprint(Cancel As Boolean) Dim foot As String foot = "Report Printed on " & Format(Now, "DD MMMM YYYY") & " at " & Format(Now, "H:MM am/pm") Worksheets("Report").PageSetup.RightFooter = foot End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Print a range when an event happens | Excel Discussion (Misc queries) | |||
Syntax of If statement in before print event | Excel Programming | |||
After Print event | Excel Programming | |||
print event | Excel Programming | |||
before print event not working | Excel Programming |