Results 1 to 3 of 3

Thread: Dissable Save

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2004
    Posts
    6

    Dissable Save

    I have a Application.Quit button knocking about and i have got it to ActiveWorkbook.Save but i dont want excel to ask if i want to save again after that before closing. Can you dissable it?

  2. #2
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697
    Sure can

    VB Code:
    1. DisplayAlerts = False

  3. #3
    Lively Member TheFIDDLER's Avatar
    Join Date
    May 2002
    Location
    here and there and far away
    Posts
    126
    I do the same thing with the following:

    VB Code:
    1. Sub Workbook_BeforeClose(Cancel As Boolean)
    2.     If Me.Saved = False Then Me.Save
    3.      End Sub

    Depends if you want to actually force a save on exit, but it looks like you have this coded anyway so just offering it as a possible solution.

    You can also just make pretend to Excel that it did save with
    if me.saved = false then me.saved = true
    in your beforeclose event.
    -----
    #VBA, VB 6 Professional Edition, Office XP Developper. Excel 97, Excel 2000, Excel XP

    I miss my VIC 20.
    Never should have upgraded to my commodore 64. ...

Posting Permissions

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



Click Here to Expand Forum to Full Width