View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Dr. M Dr. M is offline
external usenet poster
 
Posts: 11
Default In Operator Equivalent

Hello gang! I was wondering what is the VBA equivalent of the IN operator.
For instance, in SAS I might use:

IF x IN ("Me","You","Dog","Boo") THEN DO

instead of having to write

IF x="ME" or x="You" etc.

Thanks for your help!
--
Dr. M