+ Reply to Thread
Results 1 to 4 of 4

Macro to run when closing workbook

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    323

    Macro to run when closing workbook

    Hi,

    Is it possible to make a macro that runs when closing workbook.
    If it is, than I want it to save the workbook in sheet one so when next time I open the workbook it will open sheet one

    Regards
    Oeysbrei

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Macro to run when closing workbook

    Hi Oeysbrei,


    You can put this event code (or something like it) into your Workbook:

    Please Login or Register  to view this content.
    XLAdept

  3. #3
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    323

    Re: Macro to run when closing workbook

    xladept ,

    Thank you.
    I have tryed some codes before without success, this one worked perfect

    Regards
    Oeysbrei

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Macro to run when closing workbook

    Oeysbrei ,

    You're welcome - glad to have helped.

    XLAdept

+ 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