+ Reply to Thread
Results 1 to 3 of 3

AutoSave before close

  1. #1
    Registered User
    Join Date
    02-03-2006
    Location
    Canada
    Posts
    18

    AutoSave before close

    Is there any way to automatically save changes to an open excel sheet using for example the beforeclose event trigger without prompting the user?

    Cheers

  2. #2
    Kevin B
    Guest

    RE: AutoSave before close

    In the workbook's module BeforeClose even place a save command as illustrated
    below:

    ======================================================
    Private Sub Workbook_BeforeClose(Cancel As Boolean)

    ActiveWorkbook.Save

    End Sub
    ======================================================

    --
    Kevin Backmann


    "mattsvai" wrote:

    >
    > Is there any way to automatically save changes to an open excel sheet
    > using for example the beforeclose event trigger without prompting the
    > user?
    >
    > Cheers
    >
    >
    > --
    > mattsvai
    > ------------------------------------------------------------------------
    > mattsvai's Profile: http://www.excelforum.com/member.php...o&userid=31134
    > View this thread: http://www.excelforum.com/showthread...hreadid=512223
    >
    >


  3. #3
    Registered User
    Join Date
    02-03-2006
    Location
    Canada
    Posts
    18
    2 thumbs up! That's exactly what I wanted

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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