#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Auto macro

Hey,

I using a bit of simple code stored as a module to creat
headers based on cell values. This is fine but it there a
way to store the code so that it runs itself inthe
backgraound with out me having to manually execute the
macro?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 709
Default Auto macro

BDavis, you could put it in the before print code in thisworkbook code, like
this

Private Sub Workbook_BeforePrint(Cancel As Boolean)
'your code here
End Sub

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 2003

"BDavis" wrote in message
...
Hey,

I using a bit of simple code stored as a module to creat
headers based on cell values. This is fine but it there a
way to store the code so that it runs itself inthe
backgraound with out me having to manually execute the
macro?



Reply
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
Auto run macro March Excel Discussion (Misc queries) 10 January 17th 08 08:16 PM
Sub Macro vrs Function Macro Auto Start Pat Excel Discussion (Misc queries) 7 June 6th 07 09:53 PM
Run Auto Macro only once Jim D Excel Worksheet Functions 2 May 23rd 07 11:37 PM
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort Gavin Excel Worksheet Functions 0 May 17th 07 01:20 PM
macro for auto sum ahemani New Users to Excel 2 July 29th 05 12:53 AM


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