+ Reply to Thread
Results 1 to 3 of 3

Message Boxes

  1. #1
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Message Boxes

    During the course of a macro, a message box comes up such as "A file already exists by that name, do you want to continue" with two buttons, yes, no. I want the macro to automatically pick "yes" so the macro can continue How would I code this in?

    Thanks
    ChemistB

  2. #2
    Registered User
    Join Date
    04-12-2006
    Posts
    25
    hi,

    right before you are going to overwrite the file, add this line to your macro
    application.displayalerts = false

    if you want other possible application messages to be displayed during that macro, set it back to true

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Message Boxes

    Thanks, that seemed to do the trick.

    ChemistB

+ 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