+ Reply to Thread
Results 1 to 3 of 3

Beep when Messagebox is displayed

  1. #1
    Diane Alsing
    Guest

    Beep when Messagebox is displayed

    I have created a button that when pressed, runs some pieces of code. I would
    like to play a sound, beep whatever to call attention to a message box when
    displayed (because this code takes 10 hours to run!!) I would just like to
    make sure people read that message before running the code.

    Thank you
    Regards,
    Diane

  2. #2
    Jake Marx
    Guest

    Re: Beep when Messagebox is displayed

    Hi Diane,

    Diane Alsing wrote:
    > I have created a button that when pressed, runs some pieces of code.
    > I would like to play a sound, beep whatever to call attention to a
    > message box when displayed (because this code takes 10 hours to
    > run!!) I would just like to make sure people read that message
    > before running the code.


    You could use vbExclamation for the second argument to the MsgBox function:

    MsgBox "This is a test.", vbExclamation, "Test Title"

    --
    Regards,

    Jake Marx
    MS MVP - Excel
    www.longhead.com

    [please keep replies in the newsgroup - email address unmonitored]

  3. #3
    Diane Alsing
    Guest

    Re: Beep when Messagebox is displayed

    Even better - thank you!

    "Jake Marx" wrote:

    > Hi Diane,
    >
    > Diane Alsing wrote:
    > > I have created a button that when pressed, runs some pieces of code.
    > > I would like to play a sound, beep whatever to call attention to a
    > > message box when displayed (because this code takes 10 hours to
    > > run!!) I would just like to make sure people read that message
    > > before running the code.

    >
    > You could use vbExclamation for the second argument to the MsgBox function:
    >
    > MsgBox "This is a test.", vbExclamation, "Test Title"
    >
    > --
    > Regards,
    >
    > Jake Marx
    > MS MVP - Excel
    > www.longhead.com
    >
    > [please keep replies in the newsgroup - email address unmonitored]
    >


+ 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