Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
how to do it?
|
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
In your dreams mate
"CDG" wrote: how to do it? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
thank you very much
"kassie" wrote: In your dreams mate "CDG" wrote: how to do it? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Maybe John Walkenbach's instructions will help:
http://www.j-walk.com/ss/excel/tips/tip87.htm CDG wrote: how to do it? -- Dave Peterson |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Enter this macro in worksheet code:
Sub Worksheet_Change(ByVal Target As Excel.Range) ' gsnu If Intersect(Range("A1:A10"), Target) Is Nothing Then Exit Sub Application.EnableEvents = False If Target.Value < 0 Then s = "warning negative value" Application.Speech.Speak s End If Application.EnableEvents = True End Sub The routine checks entries in A1 thru A10. If the entries are negative, a warning is issued. Just be sure to put the code in worksheet code, not a module. -- Gary's Student "CDG" wrote: thank you very much "kassie" wrote: In your dreams mate "CDG" wrote: how to do it? |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
thanks m8
"Dave Peterson" wrote: Maybe John Walkenbach's instructions will help: http://www.j-walk.com/ss/excel/tips/tip87.htm CDG wrote: how to do it? -- Dave Peterson |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
?B?R2FyeScncyBTdHVkZW50?= wrote
Enter this macro in worksheet code: Sub Worksheet_Change(ByVal Target As Excel.Range) ' gsnu If Intersect(Range("A1:A10"), Target) Is Nothing Then Exit Sub Application.EnableEvents = False If Target.Value < 0 Then s = "warning negative value" Application.Speech.Speak s End If Application.EnableEvents = True End Sub The routine checks entries in A1 thru A10. If the entries are negative, a warning is issued. Just be sure to put the code in worksheet code, not a module. I couldn't get it to work in XL2000 (error 438), but some searching allowed me to adapt: Sub Worksheet_Change(ByVal Target As Excel.Range) Dim s As Object Set s = CreateObject("SAPI.SpVoice") If Intersect(Range("A1:A10"), Target) Is Nothing Then GoTo ws_exit Application.EnableEvents = False If Target.Value < 0 Then s.Speak "warning,, negative value" 'dbl commas introduce a pause End If ws_exit: Set s = Nothing Application.EnableEvents = True End Sub -- David |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I copy a table from Word into one cell in Excel without losing data? (Office 97) | Excel Discussion (Misc queries) | |||
How do I import formmail data to a custom excel template? | Excel Worksheet Functions | |||
Append the data given in diff sheets of an Excel File to one sheet | Excel Worksheet Functions | |||
Getting Excel Data from One Sheet to Another.... | Excel Discussion (Misc queries) | |||
How can deleted data reappear in a refreshed pivot table in Excel | Excel Discussion (Misc queries) |