Consulting

Results 1 to 3 of 3

Thread: Solved: Disable "save changes" pop up when closing

  1. #1

    Solved: Disable "save changes" pop up when closing

    Hi all,

    I have a workbook that has a workbook_open and workbook_beforeclose just to hide the ribbon, formula bar etc and then to show it again before closing.

    Even if i'm not doing anything to the "save changes" pop up comes up and I imagine it's to do with the workbook_open/close macro. So my question is; is there a way to disable the pop up or a completly different way of getting round the problem?

    Thanks in advance for all your comments/ help

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    You could change its status

    [vba]
    Activeworkbook.Saved = True
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Would I put this in the workbook_before close sub?

    Edit: I put it at the end of the workbook_beforeclose and it worked exactly how I wanted it to. Thanks very much
    Last edited by owen_1987; 09-06-2011 at 02:21 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •