+ Reply to Thread
Results 1 to 3 of 3

Close Excel event to use with personal.xlsb file

  1. #1
    Registered User
    Join Date
    03-06-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Close Excel event to use with personal.xlsb file

    I want to record the time I spend on Excel in my personal.xlsb file.
    I have successfully used the Sub Workbook_Open event to write the start time, however I'm having difficulty finding an event to trigger writing the fnish time.

    The Workbook_BeforeClose event does not seem to work when I close Excel. I was expecting the personal.xlsb file to be closed when I close Excel, but closing Excel does not trigger this event?

    I can use the Workbook_BeforeSave event because the start time is being written and therefore the file has changed. However this means I'm always prompted to save the personal.xlsb file when exiting Excel. I prefer not to do this as its too easy to click "Don't Save", especially when a lot of other junk files are open.

    Are there any other Event options I could use to trigger writing this finish time?

    Maybe this Excel session time is already recorded somewhere else?

  2. #2
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: Close Excel event to use with personal.xlsb file

    Are you doing a Save within the close?

    The journalling in Outlook might interest you and give more than you were expecting. It can be well worth having a look.


    click on the * Add Reputation if this was useful or entertaining.

  3. #3
    Registered User
    Join Date
    03-06-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Close Excel event to use with personal.xlsb file

    Yes I am doing a save within the close.
    The problem is that the Close event does not seem to be triggered in the first place.

    I'll check out Outlook journals.

+ 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. Automatically close hidden workbooks (Personal.xlsb)
    By JonSnow in forum Excel General
    Replies: 5
    Last Post: 01-29-2014, 09:24 AM
  2. [SOLVED] Working with WorkBook Close event and Personal.xlsb files
    By coreytroy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-09-2013, 12:40 AM
  3. Replies: 0
    Last Post: 05-10-2012, 09:22 AM
  4. Macros in Personal.xlsb not available when Excel is opened from another app
    By Muskett32 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2012, 02:57 AM
  5. Personal.xlsb crashes excel
    By Lippert in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-31-2010, 06:40 AM

Tags for this Thread

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