Thread
:
Compare three strings?
View Single Post
#
5
Posted to microsoft.public.excel.programming
Gary Brown
external usenet poster
Posts: 178
Compare three strings?
If a = b And b = c Then
Debug.Print "OK"
Else
Debug.Print "No Way"
End If
--
HTH,
Gary Brown
If this post was helpful to you, please select ''YES'' at the bottom of the
post.
"jayklmno" wrote:
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?
Reply With Quote
Gary Brown
View Public Profile
Find all posts by Gary Brown