Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Code to auto update a footer

In Excel 2003 I have code in an Addin that inserts a document id into
the footer. Users run the code from a toolbar.

I need the code to automatically update itself when any workbook is
created, opened, saved or printed. If I put the event code (eg
Workbook_BeforeSave) into the addin, it only works for the addin
workbook. Is it possible to get the code to work for every workbook,
without having to add it to each workbook?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 417
Default Code to auto update a footer

I haven't used this particular feature myself, but take a look at the
following topics in Microsoft Visual Basic Help:

Application Object Events
Using Events with the Application Object

In Excel 2000, these topics are a little hard to find. Start with any
workbook event that has the "Using Events..." link in it, click on that,
then click on the "See also" link at the top of the page, to gradually
drill down to the "Application Object Events" topic.

You might also refer to a few pages on Chip Pearson's web site:

"Application Events" (http://www.cpearson.com/excel/AppEvent.aspx)
"Events And Event Procedures In VBA"
(http://www.cpearson.com/excel/Events.aspx)

--
Regards,
Bill Renaud



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Code to auto update a footer

Thanks Bill. That was exactly what I needed. Now I can control what
happens when opening, saving or printing any worksheet. Fantastic!


On Nov 28, 2:46 pm, "Bill Renaud"
wrote:
I haven't used this particular feature myself, but take a look at the
following topics in Microsoft Visual Basic Help:

Application Object Events
Using Events with the Application Object

In Excel 2000, these topics are a little hard to find. Start with any
workbook event that has the "Using Events..." link in it, click on that,
then click on the "See also" link at the top of the page, to gradually
drill down to the "Application Object Events" topic.

You might also refer to a few pages on Chip Pearson's web site:

"Application Events" (http://www.cpearson.com/excel/AppEvent.aspx)
"Events And Event Procedures In VBA"
(http://www.cpearson.com/excel/Events.aspx)

--
Regards,
Bill Renaud


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 update information in footer - pat Excel Worksheet Functions 0 February 11th 10 07:15 PM
Footer - Automatic Date Update Matt Excel Discussion (Misc queries) 2 December 19th 08 09:38 PM
how to update data on sheet1 and have it auto update on sheet2 Tommy Excel Programming 6 May 11th 05 06:41 PM
excel links update not working in auto, calculations in auto Mikey Boy Excel Worksheet Functions 0 December 7th 04 11:53 PM
Footer (Update Date) Steved[_2_] Excel Programming 1 August 18th 03 04:59 AM


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