Gasman
Enthusiastic Amateur
- Local time
- Today, 04:05
- Joined
- Sep 21, 2011
- Messages
- 16,765
@ gasman..Can you explain y does the statement sends email when we just put numeric in if statement..
If the statement is true then the code will be executed.?
You said that your control for some strange reason was text, so I suggested using "8", only to see what it contained instead of getting the type mismatch error.
If for some strange reason it is a string, then using Val as arnelgp suggested would allow you to compare as numeric.
Personally I'd be investigating why it is not numeric, but then again, I'd be using VBA to do this.
