+ Reply to Thread
Results 1 to 3 of 3

Before exiting file prompt a note with a reminer

  1. #1
    Forum Contributor
    Join Date
    11-19-2019
    Location
    Michigan
    MS-Off Ver
    Office 365
    Posts
    546

    Before exiting file prompt a note with a reminer

    I have a file that I have created with a number of pivot tables. The users always forget to refresh some of the pivot tables before sending back to me. Which makes me do double the work.
    Is there a vba code that I can slice in that when the user exists the file a prompt comes up with a final reminder. I would add a custom note in there.

    Thank you kindly.

    -newbie

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,814

    Re: Before exiting file prompt a note with a reminer

    That sounds like you want a beforeclose event procedure:
    https://www.dummies.com/software/mic...vent-examples/
    https://access-excel.tips/excel-work...reclose-event/

    Using those examples, it should be straightforward to create beforeclose procedure that asks if the pivot tables are refreshed and block if the user indicates they are not.

    Alternatively, you could use the refreshall method to force all pivot tables to update as part of the beforeclose event procedure and not worry about reminding/asking the user. This example shows the refreshall method in a change event, but it should be easy enough to adapt it to a beforeclose event: https://www.excelcampus.com/vba/refr...automatically/
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Before exiting file prompt a note with a reminer

    There is also a 'Pivot Table' option you can set that automatically refreshes the Pivot Table when the file opens. For details see: https://support.office.com/en-us/art...Newer_versions

    Lewis

+ 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. create a button to hide note box/show note box
    By stephme55 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-27-2016, 07:31 PM
  2. [SOLVED] Add Note/Message Box Pop Up when exiting excel
    By mwinter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-28-2014, 08:26 AM
  3. Replies: 6
    Last Post: 03-04-2010, 12:03 PM
  4. macro to remind doing some task before exiting file.
    By Krzys in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-16-2007, 03:51 PM
  5. create a separate backup file in excel when exiting
    By backup excel files in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-02-2006, 04:25 PM
  6. HOW DO YOU GET EXCEL TO ASK IF YOU WANT TO SAVE A FILE ON EXITING
    By David Lambright in forum Excel General
    Replies: 3
    Last Post: 10-15-2005, 03:05 AM
  7. Excel changes margins when exiting & reentering file-why
    By Rajenbean in forum Excel General
    Replies: 0
    Last Post: 05-27-2005, 11:05 PM

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