Re: Odd or Even
- From: JE McGimpsey <jemcgimpsey@xxxxxxxx>
- Date: Wed, 15 Jun 2005 08:41:47 -0600
One way:
Dim bEven As Boolean
bEven = variable Mod 2 = 0
Dim bOdd As Boolean
bOdd = variable Mod 2 = 1
In article <92BC9C24-8D9B-4873-9A04-BE085FA67FE0@xxxxxxxxxxxxx>,
"PraxisPete" <PraxisPete@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Hi Everybody
> I think this should be straight forward but brain is just not working today
> How can I use VBA code to determine if the contents of a varible is odd or
> even?
>
> Many thanks
.
- Follow-Ups:
- Re: Odd or Even
- From: Bob Phillips
- Re: Odd or Even
- References:
- Odd or Even
- From: PraxisPete
- Odd or Even
- Prev by Date: Importing data into Excel
- Next by Date: Re: Finding links
- Previous by thread: Re: Odd or Even
- Next by thread: Re: Odd or Even
- Index(es):
Relevant Pages
|