Hi all,
Tried to search for this in the forum, but didnt have much luck finding it. If someone knows please send me the link!
Im trying to see if a cells content is in a valid range.
For example, i need the cell content ID to be in the range:
ABC27XXXX to ABC49XXXX
where X is an an integer [0-9]
i was hoping to use something like:
[vba]
Dim myCell As String
if myCell LIKE [a-A][b-B][c-C][27-49][0-9][0-9][0-9][0-9] then
...
else
...
endif
[/vba]
But it doesnt work. how can i achieve this?
Thanks all,
David