soccer7allison
New Member
- Joined
- Jun 4, 2019
- Messages
- 3
Hi! I need to run a macro that a message box will appear when the value in multiple cells is not equal to zero. I have this right now, but I need the Range to be 4 different cells and not juxt the one! Can you help??
Private Sub Worksheet_Change(ByVal Target As Range)
Dim x As StringOn Error Resume Next
x = Sheets("FA_8").Range("H27").Value
If x = "" Or x = 0 Then
Exit Sub
Else
MsgBox ("This must net to zero or a comment must be entered in cell A34 below why this does not net to zero")
End If
Private Sub Worksheet_Change(ByVal Target As Range)
Dim x As StringOn Error Resume Next
x = Sheets("FA_8").Range("H27").Value
If x = "" Or x = 0 Then
Exit Sub
Else
MsgBox ("This must net to zero or a comment must be entered in cell A34 below why this does not net to zero")
End If