AlexanderBB
Well-known Member
- Joined
- Jul 1, 2009
- Messages
- 2,119
- Office Version
- 2019
- 2010
- Platform
- Windows
Rtype is an integer = 10
Debug.Print RType And 1.
Result = 0 and I believe this is correct
rtype= 1010
1 = 0001
Result 0000
But in code my next line is 'If RType And 1 = 1 Then '.... and it executes the Then clause even though RType And 1 is not 1.
Why would this be ?
Thanks, ADKM
Debug.Print RType And 1.
Result = 0 and I believe this is correct
rtype= 1010
1 = 0001
Result 0000
But in code my next line is 'If RType And 1 = 1 Then '.... and it executes the Then clause even though RType And 1 is not 1.
Why would this be ?
Thanks, ADKM