View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 1,726
Default Compare three strings?

If var1 < var2 And var1 < var3 And var2 < var3 Then
...

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"jayklmno" wrote in message
...
Sometimes it's the little things that drive you crazy. I think I left my
brain at home.

How do you compare three strings? I want to make sure that none of three
variables are the same value. In a formula, I can do it, but the VBA code
seems to limit comparisons of only 2 at a time? Unless I'm missing
something
simple. Any help?

Thanks in advance?