egiannaros
New Member
- Joined
- Mar 14, 2008
- Messages
- 42
I am trying to write a macro that will look at a range of cells and tell me if ANY of those cells Does Not equal zero. The purpose of this macro is for data control.
This is what I have tried so far, but it is not working:
I tested the code while all cells in the range have zero in them and I am incorrectly prompted by the Msgbox. What am I doing wrong? Thanks.
This is what I have tried so far, but it is not working:
Code:
Public Sub Run_WD2_Recon()
If Range("C96:J108").Select <> 0 Then
MsgBox ("Variance Detected! Macro Will End Now.")
GoTo 10
'More VB Code will be added here at a later time.
10:
End If