Speech in VBA or Spell out messages and instructions in VBA
If you are developing applications for one and all, it would be great if you broadcast the messages in voice format. Here is the way you can achieve it in Excel VBA 2007
Sub Speak_Out()
Application.Speech.Speak "Speaking out to you..."
' Synchronous Method
For i = 1 To 100
i = i + 1
Next i
Application.Speech.Speak "Synchronous Speak"
Application.Speech.Speak "asynchronous Speak - the following code will be executed, when this statment is executed", True
MsgBox "Wait..."
For i = 1 To 100
i = i + 1
Next i
End Sub
The synchronous message allows the message to be executed and holds subsequent code processing. In asynchronous Speak the code after the Speak statements are executed while the message is spelt out.
Showing posts with label Route message to speaker in VBA. Show all posts
Showing posts with label Route message to speaker in VBA. Show all posts
Sunday, March 02, 2008
Subscribe to:
Posts (Atom)
Download Windows Live Toolbar and personalize your Web experience! Add custom buttons to get the information you care about most.