Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello Everybody,
I have a custom header and footer currently in code. I want to pull this code to a add in so I can distribute any changes, etc. When I put the code into xla, the thisworkbook.beforeprint is no longer valid. I.e. How do I call beforeprint to the active sheet? Current Code: Private Sub beforePrint(Cancel As Boolean) ActiveSheet.PageSetup.RightHeader = "Blah Blah Blah" ActiveSheet.PageSetup.LeftFooter = "Blah Blah Blah Blah" ActiveSheet.PageSetup.RightFooter = "Blah Blah, Blahblah blah" end sub -- Dan McCollick |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
BeforePrint macro | Excel Discussion (Misc queries) | |||
ThisWorkbook BeforePrint | Excel Programming | |||
ADO 2.7 & ADO 2.8 beforeprint | Excel Programming | |||
BeforePrint event | Excel Programming | |||
Help with BeforePrint | Excel Programming |