+ Reply to Thread
Results 1 to 3 of 3

Triggering Macros

  1. #1
    Sloth
    Guest

    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. #2
    Don Guillett
    Guest

    Re: Triggering Macros

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

    --
    Don Guillett
    SalesAid Software
    [email protected]
    "Sloth" <[email protected]> wrote in message
    news:[email protected]...
    >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. #3
    Norman Jones
    Guest

    Re: 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" <[email protected]> wrote in message
    news:[email protected]...
    >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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1