Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 252
Default Triggering Macros

I am very new to macros, but I have written several and mapped them to
buttons. I have seen some sample code that is triggered when the user saves,
or doubleclicking etc. Does anybody have a good reference on how to do this,
and what can be triggered?

In particular I want to know how to trigger a macro when the users saves,
and when they print (different macros for each trigger).
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Triggering Macros

Look in the ThisWorkbook module (right click the excel icon in the upper
left of the screen). In the left window select workbookin the right window
are your events.

--
Don Guillett
SalesAid Software

"Sloth" wrote in message
...
I am very new to macros, but I have written several and mapped them to
buttons. I have seen some sample code that is triggered when the user
saves,
or doubleclicking etc. Does anybody have a good reference on how to do
this,
and what can be triggered?

In particular I want to know how to trigger a macro when the users saves,
and when they print (different macros for each trigger).



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Triggering Macros

Hi Sloth,

For an introduction to event macros, which is what you are referring to, see
David Mcritchie's Events page at:

http://www.mvps.org/dmcritchie/excel/event.htm

For an in depth discussion of Event procedures see Chip Pearson's Events
page at:
http://www.cpearson.com/excel/events.htm

Specifically, look at the Workbook's Before_Save and Before_Print events.


---
Regards,
Norman



"Sloth" wrote in message
...
I am very new to macros, but I have written several and mapped them to
buttons. I have seen some sample code that is triggered when the user
saves,
or doubleclicking etc. Does anybody have a good reference on how to do
this,
and what can be triggered?

In particular I want to know how to trigger a macro when the users saves,
and when they print (different macros for each trigger).



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
Userform combo box triggering macros michaelberrier Excel Discussion (Misc queries) 6 June 10th 06 01:25 PM
triggering macros gvm Excel Programming 1 September 17th 05 04:11 PM
Triggering an excel menu using macros Sassy[_3_] Excel Programming 0 July 9th 05 12:18 AM
Triggering Macro Execution Peter M[_3_] Excel Programming 1 January 12th 04 08:20 PM
triggering different macros from list box? hammer Excel Programming 9 October 14th 03 10:37 PM


All times are GMT +1. The time now is 08:12 AM.

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"