A
aussie_craig
Hi,
I want to compare a single character to see if it is one of severa
characters. eg 1 to 9. I thought VBA supported sets ?
ie Assuming MyString is 1 charcter in length, Instead of doing this:
If MyString = "1" or MyString = "2" or MyString = "3" etc..... The
...
Can I do:
If MyString = {1..9} Then ....
Excel VBA doesn't like the curly bracket, it spits any error.
Does anyone know how to compare of value to a set or list like this ?
Thanks in Advance for any help.
Craig
I want to compare a single character to see if it is one of severa
characters. eg 1 to 9. I thought VBA supported sets ?
ie Assuming MyString is 1 charcter in length, Instead of doing this:
If MyString = "1" or MyString = "2" or MyString = "3" etc..... The
...
Can I do:
If MyString = {1..9} Then ....
Excel VBA doesn't like the curly bracket, it spits any error.
Does anyone know how to compare of value to a set or list like this ?
Thanks in Advance for any help.
Craig