View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default How can I use the XOR function?

From VBA help on XOR

Xor Operator
Used to perform a logical exclusion on two expressions.

Syntax

[result =] expression1 Xor expression2

The Xor operator syntax has these parts:

Part Description
result Optional; any numeric variable.
expression1 Required; any expression.
expression2 Required; any expression.


Regards,
Tom Ogilvy


"Roy Barr" wrote in message
...
VBA doesn't implement the XOR operator, neither has it a XOR function. Is
there an add-in or a referance I can use?
I can write my own function, but I'd rather not.

Regards,

Roy