+ Reply to Thread
Results 1 to 3 of 3

Saving personal workbook before closing excel

  1. #1
    Registered User
    Join Date
    10-27-2013
    Location
    Odisha,India
    MS-Off Ver
    Excel 2007
    Posts
    12

    Saving personal workbook before closing excel

    I have a macro in a excel workbook which modifies data in personal workbook which is hidden.
    Everytime I close the workbooks, a pop up comes out asking to save the personal workbook.
    I used a auto_close event in the 'This Workbook' module of personal workbook.
    But it doesnt seem to work.
    Can this be done?

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Saving personal workbook before closing excel

    auto_close oughta be in a normal module or you can use workbook_BeforeClose in ThisWorkbook

    you can also make the macro save the personal workbook after it changes the data
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    10-27-2013
    Location
    Odisha,India
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Saving personal workbook before closing excel

    I think these events dont work. The reason could be personal.xlsb is hidden.
    And I am not actually closing personal.xlsb. I am closing my last visble open workbook (Say Book1.xlsx).

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Creating new workbook, saving as csv and then closing - but closing always fails.
    By ella626 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-28-2014, 10:05 PM
  2. Closing the Personal workbook
    By DanBlum in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2012, 06:46 PM
  3. Allow saving upon closing a workbook even when saving is disabled.
    By Tino XXL in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-13-2011, 09:09 AM
  4. Closing the workbook without saving
    By tushar@excel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-30-2008, 05:20 AM
  5. closing a workbook without saving and closing a workbook with saving enabled
    By stanigator in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-24-2007, 02:15 PM
  6. Saving and Closing Workbook
    By Jim28 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2006, 12:30 PM
  7. Excel 2002 aborts randomly when closing/saving workbook
    By Barbara Ryan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-19-2006, 09:50 AM

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