So I've got this code to talk to the user while the macro runs, to prevent them from clicking all over the place and crashing the program.
So it works great on most computers, but some people are getting this error.
I don't want to ask all these old people to update their dll's and objects. Can someone help me with syntax for an error handling that will skip if there's an error here?
Code:
Sub UseSpeech() 'speech while macro runs.
Application.Speech.Speak "Hello " & Application.UserName & ". Please wait about 10 seconds while the macro runs in the background.", SpeakAsync:=True
End Sub
So it works great on most computers, but some people are getting this error.
Run-time error '-214720096 (8004503a)
Method 'Speak' of object 'Speech' failed
I don't want to ask all these old people to update their dll's and objects. Can someone help me with syntax for an error handling that will skip if there's an error here?