Thread
:
even
View Single Post
#
2
Posted to microsoft.public.excel.programming
Mike H
external usenet poster
Posts: 11,501
even
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
Mike H
View Public Profile
Find all posts by Mike H