+ Reply to Thread
Results 1 to 5 of 5

Workbooks.close SaveChanges:=True question

  1. #1
    Registered User
    Join Date
    12-23-2019
    Location
    florida
    MS-Off Ver
    2016
    Posts
    13

    Question Workbooks.close SaveChanges:=True question

    This might be a dumb question, and searching I can't find the answer. As everything is related to the "prompts."

    What I am wondering is if there is a way to suppress the save progress/cancel box that comes up while the workbook is saving. There are no standard prompts to deal with. I've tried using the .screenupdating and .displayalerts (Both set to false before close and back to true after close). But it is still shown.

    Like I've said, this may be one of the few displays you can't suppress. But wanted to see if I was missing another option. Thanks.

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

    Re: Workbooks.close SaveChanges:=True question

    I have not experimented with this but you can try this. Instead of checking for changes on closing, force it to save first:
    Please Login or Register  to view this content.
    I think the user will not see any progress or dialog box in this case. This assumes that you don't mind saving it even if there have been no changes.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    12-23-2019
    Location
    florida
    MS-Off Ver
    2016
    Posts
    13

    Re: Workbooks.close SaveChanges:=True question

    I'll try the tweak and see. No issues saving, as there will be for sure changes, as it opens, adds data, then closes/saves.

    Edit: Nope, still get those "progress bars" on save.
    Last edited by TFlemingX; 01-23-2020 at 05:40 PM.

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

    Re: Workbooks.close SaveChanges:=True question

    This will do it, I tested this time:

    Please Login or Register  to view this content.
    I showed MyWorkbook as an object for an external workbook. If you are closing the workbook containing the code, then you can use ThisWorkbook.

  5. #5
    Registered User
    Join Date
    12-23-2019
    Location
    florida
    MS-Off Ver
    2016
    Posts
    13

    Re: Workbooks.close SaveChanges:=True question

    ok, thanks for the help

+ 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. [SOLVED] xlsApp.Workbooks.Close fails with SaveChanges opt
    By GraeagleBill in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-06-2018, 07:27 AM
  2. ActiveWorkbook.Close savechanges = False Functionality
    By praveenkulkarni in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-06-2017, 06:38 AM
  3. [SOLVED] workbooks.close savechanges:=false doesn't seem to be working
    By z0rdd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2016, 08:28 AM
  4. SaveChanges Parameter not working with close methods
    By DeNam in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-20-2013, 07:44 AM
  5. [SOLVED] "not enough memory" error on workbook.save , but not .close(SaveChanges:=True)
    By sylvainsylvain in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-18-2013, 12:08 PM
  6. Problem with Activeworkbook.Close SaveChanges:=False
    By Ron McCormick in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-31-2006, 06:03 AM
  7. [SOLVED] workbook.close savechanges:=True problem
    By Dave the Wave in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-19-2005, 05:06 PM

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