Thread
:
even
View Single Post
#
3
Posted to microsoft.public.excel.programming
ranswert
external usenet poster
Posts: 161
even
Thanks I'll give that a try.
"Mike H" wrote:
Use the MOD function
myvariable = 9
If (myvariable Mod 2) 0 Then
MsgBox "Odd"
Else
MsgBox "Even"
End If
Mike
"ranswert" wrote:
How do I find out if a variable is even?
Thanks
Reply With Quote
ranswert
View Public Profile
Find all posts by ranswert