+ Reply to Thread
Results 1 to 5 of 5

Message Box Voice

  1. #1
    Registered User
    Join Date
    03-03-2010
    Location
    Orlando, Florida
    MS-Off Ver
    Excel 2007
    Posts
    48

    Message Box Voice

    Is there any way to utilize Application.Speech.Speak to say the contents of my message box? Currently, I have:

    Please Login or Register  to view this content.
    Now, this works, but the speech comes in after the message box is closed. Is there a way to have the speech occur when the message box opens?
    Last edited by fervorking; 05-27-2011 at 02:34 PM.

  2. #2
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Message Box Voice

    The following worked for me. You should declare a String variable like:
    Please Login or Register  to view this content.
    Last edited by Mordred; 05-26-2011 at 05:02 PM.
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  3. #3
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: Message Box Voice

    The only way I can think of is to replace your msgbox with a userform. Msgbox interupts the code until "ok" (or whatever button options you select) are clicked.

  4. #4
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Message Box Voice

    Oops, I read like an idiot sometimes, I didn't see the sentence after your code.

  5. #5
    Registered User
    Join Date
    03-03-2010
    Location
    Orlando, Florida
    MS-Off Ver
    Excel 2007
    Posts
    48

    Re: Message Box Voice

    Quote Originally Posted by Mordred View Post
    The following worked for me. You should declare a String variable like:
    Please Login or Register  to view this content.
    Perfect. Thanks.

+ 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