RJSIGKITS
Board Regular
- Joined
- Apr 15, 2013
- Messages
- 109
Guys. What am I doing wrong, please?
I need a VBA message box to pop up if and when a specific cell has specific text in it as follows:
Cell D33 formula is:
=IF(ISERROR(SUM(E15:E32)),"Selection Error",(SUM(E15:E32)))
When I am in the VBA editor and run the code, it works, but when I close the editor and change values so that the cell says "Selection Error" nothing happens...
I need a VBA message box to pop up if and when a specific cell has specific text in it as follows:
Code:
Private Sub Worksheet_Calculate()If Worksheets("Home Quote").Range("D33").Value = "Selection Error" Then
MsgBox "Please make another selection"
End If
End Sub
Cell D33 formula is:
=IF(ISERROR(SUM(E15:E32)),"Selection Error",(SUM(E15:E32)))
When I am in the VBA editor and run the code, it works, but when I close the editor and change values so that the cell says "Selection Error" nothing happens...