End Macro If Cell Formula produces "#VALUE!"
you could use something like this
If IsError(Range("a1")) Then
MsgBox "Please Login before executing this macro"
Exit Sub
End If
--
Gary
"slim" wrote in message
news:5P%gf.12128$Lw6.3130@trndny02...
I'd like to make a small error catch in a macro that will halt it if a
formula produces an error of #VALUE!
I was thinking something like this:
If Range("C25").Value = "#VALUE!" Then
MsgBox "Please Login before executing this macro"
Exit Sub
End If
Obviously my syntax is off. Can someone help me with this?
Thanks.
|