LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Before Print Event

There was another thread (within the last month???) where different user had the
same problem. The code would always work for me.

His solution was to add a button that would fix the header and print the job.



Dave M wrote:

When I hit 'F8' to run through the code, it looks like it runs proper, but
the footer is not updated!

"Jim Rech" wrote:

Runs fine here. Be sure events are enabled.

--
Jim
"Dave M" wrote in message
...
|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
|




--

Dave Peterson


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Print a range when an event happens kefee85 Excel Discussion (Misc queries) 4 February 16th 09 10:42 PM
Syntax of If statement in before print event mikeburg[_24_] Excel Programming 3 September 14th 05 03:18 PM
After Print event No Name Excel Programming 4 April 21st 05 09:20 PM
print event xlcharlie Excel Programming 1 April 19th 05 05:25 PM
before print event not working goss[_17_] Excel Programming 2 January 29th 04 03:54 AM


All times are GMT +1. The time now is 07:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"