smartpat19
Board Regular
- Joined
- Sep 3, 2014
- Messages
- 114
I am running a few checks at the beginning of my macro to insure that the data is correct.
What am I doing wrong? I want to check that the sum of this range is lower than 10 before running the macro.
Thank you!
What am I doing wrong? I want to check that the sum of this range is lower than 10 before running the macro.
Code:
Set costrange = wks.Range("H8:H46")
Set costcheck = WorksheetFunction.Sum(costrange).Value
If costcheck >= 10 Then GoTo Fail
else
end if
Thank you!