LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default VB Script not working in Excel 2010

Hello,

I have a VB script that I was running for all of my worksheets in Excel 2007
to
put a date in the header of all worksheets in a workbook before printing.
When
I upgraded to 2010 it no longer worked. I've gone through the Trust Center
and
enabled macros and clicked trust access to VBA. The script being run is as
follows:

Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.RightHeader = Range("'revisiondate'!b2").Value
End Sub

Any ideas on how to get this to run again?

Thanks
 
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
On Error Resume Next not working (2010) Clif McIrvin[_3_] Excel Programming 4 November 9th 10 07:07 PM
VBA: Insert Page Breaks code is not working in Excel 2010 iswarya Excel Programming 1 April 22nd 10 10:24 AM
year 2010 not working in IF SLP Excel Discussion (Misc queries) 2 December 13th 07 06:29 PM
Excel VBA script not fully working... help! RompStar Excel Programming 4 October 18th 07 05:21 PM
Excel VB Script Not Working in Explorer Carrie[_3_] Excel Programming 2 May 19th 04 12:46 AM


All times are GMT +1. The time now is 07:19 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"