A
a_puny_human
Version: 2004 Operating System: Mac OS X 10.5 (Leopard) Processor: Power PC Hi,
I'm trying to get a VBA script to run automatically on a cell change, while the code works fine on a PC, the Mac won't do take any action the code* is as follows:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$E$5" Then
If Range("E5".Value = "Red" Then
Range("C15".Value = "Stop"
End If
If Range("E5".Value = "Green" Then
Range("C15".Value = "Go"
End If
End If
End Sub
"Green" and "Red" are options in a drop down list. Macros are enabled and I've closed and reopened the file before i tried it.
Any suggestions to get this to work would be greatly appreciated.
Thanks!
aph
This is my test code to get any result, not the practical code that i intend to implement. Getting a result though, would be a nice step forward.
I'm trying to get a VBA script to run automatically on a cell change, while the code works fine on a PC, the Mac won't do take any action the code* is as follows:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$E$5" Then
If Range("E5".Value = "Red" Then
Range("C15".Value = "Stop"
End If
If Range("E5".Value = "Green" Then
Range("C15".Value = "Go"
End If
End If
End Sub
"Green" and "Red" are options in a drop down list. Macros are enabled and I've closed and reopened the file before i tried it.
Any suggestions to get this to work would be greatly appreciated.
Thanks!
aph
This is my test code to get any result, not the practical code that i intend to implement. Getting a result though, would be a nice step forward.