+ Reply to Thread
Results 1 to 2 of 2

Save without prompts

  1. #1
    Jeff
    Guest

    Save without prompts

    I save off a backup copy of the sheet using the Auto_Close sub. However, I
    always get asked to save it since a copy exists already.

    ActiveWorkbook.SaveAs "h:\VBA Work\Transit Master_0.3\Transit Master_0.3.xls"

    always returns the message to save. Can I save this off and avoid the
    prompts like I can when I close a file

  2. #2
    Bob Phillips
    Guest

    Re: Save without prompts

    Precede the save code with

    Application.DisplayAlerts = False

    and set it back to true afterwards.

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Jeff" <[email protected]> wrote in message
    news:[email protected]...
    > I save off a backup copy of the sheet using the Auto_Close sub. However, I
    > always get asked to save it since a copy exists already.
    >
    > ActiveWorkbook.SaveAs "h:\VBA Work\Transit Master_0.3\Transit

    Master_0.3.xls"
    >
    > always returns the message to save. Can I save this off and avoid the
    > prompts like I can when I close a file




+ 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