LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default Exclusive OR question

Hi all,

Sorry first that my question may not be specifically related to Excel VBA,
but I really encountered it when I had to write a VBA function.

Suppose I have three boolean variables A, B and C. How can I test if there
is exactly one of them is true? I found that the following expression

A Xor B Xor C

failed when A = True and B = True and C = True.

Any ideas would be greatly appreciated.

Frederick Chow
Hong Kong.


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
File in Exclusive Use SSi308 Excel Discussion (Misc queries) 3 June 3rd 10 08:59 PM
2 IF Statements not mutually exclusive Bev Excel Discussion (Misc queries) 2 August 24th 06 05:23 AM
Exclusive choice checkbox Tony Excel Programming 7 July 12th 06 11:42 AM
On exclusive open for write vezerid Excel Programming 3 January 23rd 06 06:09 PM
Exclusive use Problem TC Excel Discussion (Misc queries) 0 July 12th 05 06:09 PM


All times are GMT +1. The time now is 11:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"