+ Reply to Thread
Results 1 to 4 of 4

Program Auto Yes for overwriting files

  1. #1
    Forum Contributor
    Join Date
    09-19-2004
    Posts
    252

    Program Auto Yes for overwriting files

    I have a save dialog in one of my macros but since it is overwriting a file in a location week after week I get a popup that says
    A file named "D6_Panic.xls" already exists in this location. Do you want to replace it?
    Is there a way to automatically program a yes there in the macro?

  2. #2
    Die_Another_Day
    Guest

    Re: Program Auto Yes for overwriting files

    before save use this line of code:
    application.displayalerts = false

    after saving turn it back on with this line of code
    application.displayalerts = true

    HTH
    Die_Another_Day


  3. #3
    Forum Contributor
    Join Date
    09-19-2004
    Posts
    252
    It works, thanks!!! Does that work for Deleting Sheets too? Sometimes when I delete a sheet it asks if I'm sure.

  4. #4
    Tom Ogilvy
    Guest

    Re: Program Auto Yes for overwriting files

    Yes.

    --
    Regards,
    Tom Ogilvy


    "DKY" <[email protected]> wrote in message
    news:[email protected]...
    >
    > It works, thanks!!! Does that work for Deleting Sheets too? Sometimes
    > when I delete a sheet it asks if I'm sure.
    >
    >
    > --
    > DKY
    > ------------------------------------------------------------------------
    > DKY's Profile:

    http://www.excelforum.com/member.php...o&userid=14515
    > View this thread: http://www.excelforum.com/showthread...hreadid=542542
    >




+ 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