Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default SPEECH problem

The following macro causes "Run-time error '1004': Application-defined or
object-defined error"

Sub UseSpeech()

Application.Speech.Speak "Hello"

End Sub

I have "Microsoft Sam" installed and working in the control panel's speech
section (the speech preview works fine). I'm using Office 2003 Students &
Teachers. Any help would be greatly appreciated. Thanks.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default SPEECH problem

Text to speech is an optional component during the install. Run the
Office/Excel install again and check that component is installed.
Not sure if it's available with your version of Excel though.

NickHK

"AP" wrote in message
...
The following macro causes "Run-time error '1004': Application-defined or
object-defined error"

Sub UseSpeech()

Application.Speech.Speak "Hello"

End Sub

I have "Microsoft Sam" installed and working in the control panel's speech
section (the speech preview works fine). I'm using Office 2003 Students &
Teachers. Any help would be greatly appreciated. Thanks.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default SPEECH problem

Thanks Nick,

I've checked the box in which the software came and it says its the "full
versions of our latest Office products" (I bought it several months ago just
before the release of Vista).

I've also gone to the control panel to re-install and could see that the
speech component is already installed. Can you think of any other reason why
it doesn't work ? Thanks for your help.

AP

"NickHK" wrote in message
...
Text to speech is an optional component during the install. Run the
Office/Excel install again and check that component is installed.
Not sure if it's available with your version of Excel though.

NickHK

"AP" wrote in message
...
The following macro causes "Run-time error '1004': Application-defined or
object-defined error"

Sub UseSpeech()

Application.Speech.Speak "Hello"

End Sub

I have "Microsoft Sam" installed and working in the control panel's
speech
section (the speech preview works fine). I'm using Office 2003 Students &
Teachers. Any help would be greatly appreciated. Thanks.






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default SPEECH problem

For me, if that component is installed the code works.
Uninstall it and the code fails with your error.

Not much more I can offer.

NickHK

"AP" wrote in message
...
Thanks Nick,

I've checked the box in which the software came and it says its the "full
versions of our latest Office products" (I bought it several months ago

just
before the release of Vista).

I've also gone to the control panel to re-install and could see that the
speech component is already installed. Can you think of any other reason

why
it doesn't work ? Thanks for your help.

AP

"NickHK" wrote in message
...
Text to speech is an optional component during the install. Run the
Office/Excel install again and check that component is installed.
Not sure if it's available with your version of Excel though.

NickHK

"AP" wrote in message
...
The following macro causes "Run-time error '1004': Application-defined

or
object-defined error"

Sub UseSpeech()

Application.Speech.Speak "Hello"

End Sub

I have "Microsoft Sam" installed and working in the control panel's
speech
section (the speech preview works fine). I'm using Office 2003 Students

&
Teachers. Any help would be greatly appreciated. Thanks.








  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default SPEECH problem

The trick is:

By default, the Text-To-Speech component is set to "Installed on first
use" - this causes the runtime error 1004. Although the speech preview in
the control panel works, the speech macro in Excel doesn't (runtime error
1004).

However, if you change the Text-To-Speech component to "Run from MyComputer"
then the error disappears altogether (the application.speech.speak "Hello"
code works)

Hope anybody with this problem learns from this.

Cheers,
AP

"NickHK" wrote in message
...
For me, if that component is installed the code works.
Uninstall it and the code fails with your error.

Not much more I can offer.

NickHK

"AP" wrote in message
...
Thanks Nick,

I've checked the box in which the software came and it says its the "full
versions of our latest Office products" (I bought it several months ago

just
before the release of Vista).

I've also gone to the control panel to re-install and could see that the
speech component is already installed. Can you think of any other reason

why
it doesn't work ? Thanks for your help.

AP

"NickHK" wrote in message
...
Text to speech is an optional component during the install. Run the
Office/Excel install again and check that component is installed.
Not sure if it's available with your version of Excel though.

NickHK

"AP" wrote in message
...
The following macro causes "Run-time error '1004': Application-defined

or
object-defined error"

Sub UseSpeech()

Application.Speech.Speak "Hello"

End Sub

I have "Microsoft Sam" installed and working in the control panel's
speech
section (the speech preview works fine). I'm using Office 2003
Students

&
Teachers. Any help would be greatly appreciated. Thanks.










Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TEXT TO SPEECH peyman Excel Discussion (Misc queries) 3 August 26th 08 10:14 PM
Use Speech in Excel faureman via OfficeKB.com Excel Discussion (Misc queries) 0 August 20th 07 09:03 PM
speech with if formula Mike Excel Programming 2 March 18th 06 08:28 PM
TEXT TO SPEECH CHANGES pcor Excel Discussion (Misc queries) 3 January 5th 06 12:51 AM
Text to speech PCOR Excel Programming 2 October 19th 05 03:16 AM


All times are GMT +1. The time now is 10:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"