+ Reply to Thread
Results 1 to 4 of 4

Is there anyway to detect when closing workbook?

  1. #1
    Forum Contributor VAer's Avatar
    Join Date
    09-10-2016
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    786

    Is there anyway to detect when closing workbook?

    There is xlsm file on team shared drive, and I can put some code in Workbook_Open to detect when someone opens the workbook.

    Is there anything like Workbook_Close to detect when someone closes the workbook?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2407
    Posts
    26,128

    Re: Is there anyway to detect when closing workbook?

    yes, put in ThisWorkbook module:
    Please Login or Register  to view this content.
    There are built-in tools to answer this type of question

    Workbook functions.jpg
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor VAer's Avatar
    Join Date
    09-10-2016
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    786

    Re: Is there anyway to detect when closing workbook?

    Quote Originally Posted by 6StringJazzer View Post
    yes, put in ThisWorkbook module:
    Please Login or Register  to view this content.
    There are built-in tools to answer this type of question

    Attachment 882209
    Thank you very much.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2407
    Posts
    26,128

    Re: Is there anyway to detect when closing workbook?

    You're welcome!

    If a member helped you solve your problem, consider adding to their reputation by clicking $A addreputationiconsmall.jpg below their profile in any of their posts.

+ 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. Opening A 2nd Workbook to Retrieve Data From then Closing that Workbook
    By ddevries03 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-09-2016, 05:04 PM
  2. Excel 2013 not closing after closing workbook
    By SBennett212 in forum Excel General
    Replies: 4
    Last Post: 04-04-2015, 11:07 AM
  3. 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
  4. [SOLVED] Closing a Workbook from another workbook: Workbooks.close error: Subscript out of range
    By Coreyusa in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-14-2013, 06:45 PM
  5. Replies: 8
    Last Post: 04-25-2012, 01:05 PM
  6. 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
  7. How can I detect .xls closing? Not BeforeClose , Like AfterClose?
    By Zoo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2006, 07:55 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