speak input box dialogue

  • Thread starter Thread starter wizardmalcolm
  • Start date Start date
W

wizardmalcolm

I have macros calling up input boxes to fill-in a form
It would be good to use "text to speech" to ask the question
Any ideas
 
Option Explicit
Sub testme()

Dim resp As String
Dim myStr As String
myStr = "What's the code, Kenny?"

Application.Speech.Speak myStr
resp = InputBox(prompt:=myStr)

If resp = "" Then
'do nothing
Else
Application.Speech.Speak "You answered: " & resp
End If

End Sub

Personally, I would find this interesting/funny for the first couple of times.
Then I'd want it gone.
 
Works a treat thank you.
I agree about it getting boring, but its good to see how it can be done
Thanks again
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top