Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default speech feature in excel

How can I detect if the speech feature is installed in Excel?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default speech feature in excel

Marvin,
I still use XL2K, so I can't test it, but from
http://msdn.microsoft.com/library/en...asp?frame=true
it seems that there is a Speech object. If you trap the error that will
occur, if speech is no possible when:

Dim Spch As Object
On Error Resume Next
Set Spch = Application.Speech
If Err.Number 0 Then
MsgBox "Speech not available"
Exit Sub
End If

NickHK

"Marvin" wrote in message
...
How can I detect if the speech feature is installed in Excel?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 71
Default speech feature in excel

Your approach does work. The system will return a 1004 if the feature is not
installed. I wrote code based on this general error number but would have
preferred to get at an actual detection test for this particular feature.
Thanks for your efforts.

"Marvin" wrote:

How can I detect if the speech feature is installed in Excel?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default speech feature in excel

Marvin,
That is what you are doing. You are asking for a Speech object, Excel says
"Sorry I don't know what that is" and you react to it.
There is nothing wrong with dealing with errors; they provide information as
a positive result would.

I don't know if Speech is an optional installation, but you could just check
the if Application.Version10 (or 11 ?).

NickHK

"Marvin" wrote in message
...
Your approach does work. The system will return a 1004 if the feature is

not
installed. I wrote code based on this general error number but would have
preferred to get at an actual detection test for this particular feature.
Thanks for your efforts.

"Marvin" wrote:

How can I detect if the speech feature is installed in Excel?



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 Feature ManhattanRebel Excel Discussion (Misc queries) 2 October 15th 09 07:26 PM
speech in a excel document? Shar 0905 Excel Discussion (Misc queries) 1 May 21st 09 09:30 AM
Use Speech in Excel faureman via OfficeKB.com Excel Discussion (Misc queries) 0 August 20th 07 09:03 PM
Where is the text to speech in excel 2000 Hifly Excel Discussion (Misc queries) 1 July 11th 05 11:16 PM
Where is the text to speech in excel 2000 Hifly Excel Discussion (Misc queries) 1 July 11th 05 09:42 PM


All times are GMT +1. The time now is 10:34 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"