PC Review


Reply
Thread Tools Rate Thread

Can Excel's speech be made to read cell contents instead of macro placed text?

 
 
mrlanier@hotmail.com
Guest
Posts: n/a
 
      4th May 2007
Can someone write a macro that will read string text results from a
designated cell (A1) instead of having to rely on macro dictated text
such as in the sample below?

Private Sub Worksheet_Calculate()
With Application.Speech
Select Case Range("A1")
Case Is = 1: .Speak "If A1 has a returned value of 1, then
this text is made audible."
Case Is = 2: .Speak "If A1 has a value of 2, then this text is
spoken by the computer."
End Select
End With
End Sub

 
Reply With Quote
 
 
 
 
Norman Jones
Guest
Posts: n/a
 
      4th May 2007
Hi Mrlanier,

See John Walkenbach at:

Sound-Proof 2000
http://j-walk.com/ss/sp2000/index.htm


---
Regards,
Norman



<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Can someone write a macro that will read string text results from a
> designated cell (A1) instead of having to rely on macro dictated text
> such as in the sample below?
>
> Private Sub Worksheet_Calculate()
> With Application.Speech
> Select Case Range("A1")
> Case Is = 1: .Speak "If A1 has a returned value of 1, then
> this text is made audible."
> Case Is = 2: .Speak "If A1 has a value of 2, then this text is
> spoken by the computer."
> End Select
> End With
> End Sub
>



 
Reply With Quote
 
Tim
Guest
Posts: n/a
 
      4th May 2007
application.Speech.Speak activesheet.range("C2").value

Tim


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Can someone write a macro that will read string text results from a
> designated cell (A1) instead of having to rely on macro dictated text
> such as in the sample below?
>
> Private Sub Worksheet_Calculate()
> With Application.Speech
> Select Case Range("A1")
> Case Is = 1: .Speak "If A1 has a returned value of 1, then
> this text is made audible."
> Case Is = 2: .Speak "If A1 has a value of 2, then this text is
> spoken by the computer."
> End Select
> End With
> End Sub
>



 
Reply With Quote
 
mrlanier@hotmail.com
Guest
Posts: n/a
 
      4th May 2007
I was hoping more for a macro rather than an add in. Thanks however.

Michael

 
Reply With Quote
 
mrlanier@hotmail.com
Guest
Posts: n/a
 
      4th May 2007
Thank you Tim. Unfortunately, I'm not very proficient with macros.
I'm not sure how you intend your suggestion to be placed, assuming you
intended to place it within my current macro. Can you be more
specific? Thanks.

application.Speech.Speak activesheet.range("C2").value

Private Sub Worksheet_Calculate()
With Application.Speech
Select Case Range("A1")
Case Is = 1: .Speak "If A1 has a returned value of 1, then
this text is made audible."
Case Is = 2: .Speak "If A1 has a value of 2, then this text is
spoken by the computer."
End Select
End With
End Sub- Hide quoted text -




 
Reply With Quote
 
Tim
Guest
Posts: n/a
 
      5th May 2007



Private Sub Worksheet_Calculate()
With Application.Speech
Select Case Range("A1")
Case Is = 1: .Speak
ThisWorkbook.Sheets("Speech").Range("A1").value
Case Is = 2: .Speak
ThisWorkbook.Sheets("Speech").Range("A2").value
End Select
End With
End Sub

Tim


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thank you Tim. Unfortunately, I'm not very proficient with macros.
> I'm not sure how you intend your suggestion to be placed, assuming you
> intended to place it within my current macro. Can you be more
> specific? Thanks.
>
> application.Speech.Speak activesheet.range("C2").value
>
> Private Sub Worksheet_Calculate()
> With Application.Speech
> Select Case Range("A1")
> Case Is = 1: .Speak "If A1 has a returned value of 1, then
> this text is made audible."
> Case Is = 2: .Speak "If A1 has a value of 2, then this text is
> spoken by the computer."
> End Select
> End With
> End Sub- Hide quoted text -
>
>
>
>



 
Reply With Quote
 
Tim Williams
Guest
Posts: n/a
 
      5th May 2007
Note those "Case..." lines should be on one line: got wrapped when I posted.

Tim

"Tim" <tim j williams at gmail dot com> wrote in message
news:(E-Mail Removed)...
>
>
>
> Private Sub Worksheet_Calculate()
> With Application.Speech
> Select Case Range("A1")
> Case Is = 1: .Speak
> ThisWorkbook.Sheets("Speech").Range("A1").value
> Case Is = 2: .Speak
> ThisWorkbook.Sheets("Speech").Range("A2").value
> End Select
> End With
> End Sub
>
> Tim
>
>
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Thank you Tim. Unfortunately, I'm not very proficient with macros.
>> I'm not sure how you intend your suggestion to be placed, assuming you
>> intended to place it within my current macro. Can you be more
>> specific? Thanks.
>>
>> application.Speech.Speak activesheet.range("C2").value
>>
>> Private Sub Worksheet_Calculate()
>> With Application.Speech
>> Select Case Range("A1")
>> Case Is = 1: .Speak "If A1 has a returned value of 1, then
>> this text is made audible."
>> Case Is = 2: .Speak "If A1 has a value of 2, then this text is
>> spoken by the computer."
>> End Select
>> End With
>> End Sub- Hide quoted text -
>>
>>
>>
>>

>
>



 
Reply With Quote
 
mrlanier@hotmail.com
Guest
Posts: n/a
 
      5th May 2007
Thanks Tim. I'm eager to give your macro a try.

Michael

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text to speech upon cell selection, Excel 2007? manxman Microsoft Excel Misc 0 16th Jul 2008 04:26 PM
How do I get Excel 2007 to 'read' cell contents to me, vocally? johnb609 Microsoft Excel Misc 1 4th May 2008 01:48 AM
Can I copy cell contents to an autoshape as text using a macro? =?Utf-8?B?U3luZHJvbWU=?= Microsoft Excel Programming 1 11th Jul 2006 01:16 PM
How can I edit cell contents with a macro in Excel? =?Utf-8?B?TWluZCB0aGUgZ2FwcyE=?= Microsoft Excel Misc 2 23rd Mar 2005 08:51 PM
How can I edit cell contents with a macro in Excel? =?Utf-8?B?Tm90QW5FeHBlcnQ=?= Microsoft Excel Misc 1 23rd Mar 2005 01:17 AM


Features
 

Advertising
 

Newsgroups
 


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