Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default Text to speech particular cell

hi
ive been trying for a while now to get the text to speech function to work
for a particular cell.

For example, i have a set of numbers and a total in D15, what i would like
is that if i change the numbers that contribute to that total, and the total
in D15 changes then excel will alert me saying "Change in Total".
ive tried and failed to get it notice the changed total and would really
appreciate some help

Thank You for any contributions
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11,058
Default Text to speech particular cell

Let's put the message in a cell, say D16.

In a standard module insert the follow line:
Public OldVar As Variant

Insert the following event macro in the worksheet code area:

Private Sub Worksheet_Calculate()
If OldVar = Range("B15").Value Then Exit Sub
Range("B16").Speak
OldVar = Range("B15").Value
End Sub


Insert the following macro in the workbook code area:

Private Sub Workbook_Open()
OldVar = Sheets("Sheet1").Range("B15").Value
End Sub


--
Gary''s Student - gsnu200817
  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default Text to speech particular cell

Thank you very much
Just a further question, if i wanted to add more cells how could i do that?
im thinking of being crude and just using the same code repeatedly, changing
the cell.
However ive tried that, but i know im not doing it right, i dont know if i
have to do it in the same worksheet or not, and if so then how do i avoid the
"ambiguous name detected" error.

As you can tell im very new to VBA

Once again, thanks for any help
"Gary''s Student" wrote:

Let's put the message in a cell, say D16.

In a standard module insert the follow line:
Public OldVar As Variant

Insert the following event macro in the worksheet code area:

Private Sub Worksheet_Calculate()
If OldVar = Range("B15").Value Then Exit Sub
Range("B16").Speak
OldVar = Range("B15").Value
End Sub


Insert the following macro in the workbook code area:

Private Sub Workbook_Open()
OldVar = Sheets("Sheet1").Range("B15").Value
End Sub


--
Gary''s Student - gsnu200817

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11,058
Default Text to speech particular cell

You cannot replicate the subs. There can only be one sub of each type on
each worksheet/workbook.

You would need to use arrays within the subs to trap the different cells
that must be monitored.
--
Gary''s Student - gsnu200817


"FunkyAnt13" wrote:

Thank you very much
Just a further question, if i wanted to add more cells how could i do that?
im thinking of being crude and just using the same code repeatedly, changing
the cell.
However ive tried that, but i know im not doing it right, i dont know if i
have to do it in the same worksheet or not, and if so then how do i avoid the
"ambiguous name detected" error.

As you can tell im very new to VBA

Once again, thanks for any help
"Gary''s Student" wrote:

Let's put the message in a cell, say D16.

In a standard module insert the follow line:
Public OldVar As Variant

Insert the following event macro in the worksheet code area:

Private Sub Worksheet_Calculate()
If OldVar = Range("B15").Value Then Exit Sub
Range("B16").Speak
OldVar = Range("B15").Value
End Sub


Insert the following macro in the workbook code area:

Private Sub Workbook_Open()
OldVar = Sheets("Sheet1").Range("B15").Value
End Sub


--
Gary''s Student - gsnu200817

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 upon cell selection, Excel 2007? manxman Excel Discussion (Misc queries) 0 July 16th 08 04:26 PM
TEXT TO SPEECH CHANGES pcor Excel Discussion (Misc queries) 3 January 5th 06 12:51 AM
text to speech Fishy Excel Discussion (Misc queries) 0 July 22nd 05 04:48 PM
text to speech Debora Setting up and Configuration of Excel 0 December 9th 04 12:51 PM
text to speech STT Excel Discussion (Misc queries) 1 November 29th 04 07:50 PM


All times are GMT +1. The time now is 05:46 AM.

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"