+ Reply to Thread
Results 1 to 4 of 4

Message Box

  1. #1
    Registered User
    Join Date
    02-09-2006
    Posts
    51

    Message Box

    Is it possible to answer "Yes" or "No" to a message box through VBA without actually doing it manually?

  2. #2
    Dave Peterson
    Guest

    Re: Message Box

    If you know what the answer is, why bother asking?

    This seems to work under some versions of windows:

    CreateObject("WScript.Shell").Popup "Hello", 4, _
    "This closes itself in 4 seconds"

    But it doesn't work in all versions of windows.

    Maybe designing a userform would be best.



    PBANKS wrote:
    >
    > Is it possible to answer "Yes" or "No" to a message box through VBA
    > without actually doing it manually?
    >
    > --
    > PBANKS
    > ------------------------------------------------------------------------
    > PBANKS's Profile: http://www.excelforum.com/member.php...o&userid=31370
    > View this thread: http://www.excelforum.com/showthread...hreadid=515928


    --

    Dave Peterson

  3. #3
    Dave Peterson
    Guest

    Re: Message Box

    And then use application.ontime to dismiss it.

    Chip Pearson has lots of instructions at:
    http://www.cpearson.com/excel/ontime.htm

    PBANKS wrote:
    >
    > Is it possible to answer "Yes" or "No" to a message box through VBA
    > without actually doing it manually?
    >
    > --
    > PBANKS
    > ------------------------------------------------------------------------
    > PBANKS's Profile: http://www.excelforum.com/member.php...o&userid=31370
    > View this thread: http://www.excelforum.com/showthread...hreadid=515928


    --

    Dave Peterson

  4. #4
    Registered User
    Join Date
    02-09-2006
    Posts
    51
    Outlook security is the reason, found "click yes" on the web. Works great!

+ 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