+ Reply to Thread
Results 1 to 3 of 3

Perform a macro on document close?

  1. #1
    Registered User
    Join Date
    04-19-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    40

    Question Perform a macro on document close?

    Is it possible to have a vba macro execute on document close? The idea is to have the macro save the file and add an outlook reminder and then continue with close.

    i have the code for saving/adding outlook reminder, its just a matter of having it execute when user tries to close document via X button or any other means.

    Your help will be greatly appreciated.
    Last edited by mpower87; 05-11-2010 at 11:39 PM. Reason: edit

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,570

    Re: Perform a macro on document close?

    In the ThisWorkbook Module
    Please Login or Register  to view this content.
    Last edited by shg; 05-12-2010 at 12:03 AM.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    04-19-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: Perform a macro on document close?

    Excellent, just what I was looking for :-) thank you
    Last edited by shg; 05-12-2010 at 12:03 AM. Reason: deleted spurious quote

+ 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