Run-time error '1004':
Application-defined or object-defined error
Application-defined or object-defined error
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.
View products that this article applies to.
Sub SayHello()
On Error GoTo handler
Application.Speech.Speak ("Hello")
handler:
If Err.Number = 1004 Then
MsgBox "This macro requires Text to Speech to be installed."
End If
End Sub
Keywords: KB277808, kbprb, kberrmsg, kbenablesight, kbenable