deletedalien
Well-known Member
- Joined
- Dec 8, 2008
- Messages
- 505
- Office Version
- 2013
- Platform
- Windows
i have this line of code:
and the following formula in Summary inbound A1
=IF(COUNTIF('Inbound Detail'!AF1:AH1,"error")>0,"ERROR","Ok")
and for whatever reason regardless if A1 says "ok" or "error" it always triggers Exit1 sub routine.
What am i doing wrong?
Thanx in advance.
Code:
If Worksheets("Summary Inbound").Range("A1").Value = "Error" Then GoTo Exit1
Exit1:
Application.ScreenUpdating = True
MsgBox "Error", vbCritical
Exit Sub
and the following formula in Summary inbound A1
=IF(COUNTIF('Inbound Detail'!AF1:AH1,"error")>0,"ERROR","Ok")
and for whatever reason regardless if A1 says "ok" or "error" it always triggers Exit1 sub routine.
What am i doing wrong?
Thanx in advance.