What is the vba program for even or odd?
Answers
Answered by
4
The Mod (modulus) operator is the VBA equivalent to the MOD function in Excel. ... To check if a value is an even or an odd number I used the Mod operator to divide the variable holding the number by 2. If the result returned 0 then it must be an even number.
Answered by
0
- ✒The Mod (modulus) operator is the VBA equivalent to the MOD function in Excel. ... To check if a value is an even or an odd number I used the Mod operator to divide the variable holding the number by 2. If the result returned 0 then it must be an even number.
Similar questions