aurelius89
Board Regular
- Joined
- Mar 15, 2017
- Messages
- 69
Hi,
I need some vba to check if a cell contains the combination of NUMBER LETTER NUMBER or starts with a Letter
However, not sure where to even begin with this...
It will be part of a much much larger code, but for a simple example lets say cell A1 is the cell to check and the msgbox says "yes" or "no" if it matches
Combinations that would trigger the match:
123abc1
1a3333
45bbb111
k23
PP1
MMMM8
Combinations that would not:
12a
1111111111k
989
7
Anyone point me in the right direction?
Thanks
I need some vba to check if a cell contains the combination of NUMBER LETTER NUMBER or starts with a Letter
However, not sure where to even begin with this...
It will be part of a much much larger code, but for a simple example lets say cell A1 is the cell to check and the msgbox says "yes" or "no" if it matches
Code:
If A1 = ????? Then
Msgbox "yes"
Else
Msgbox "no"
End If
Combinations that would trigger the match:
123abc1
1a3333
45bbb111
k23
PP1
MMMM8
Combinations that would not:
12a
1111111111k
989
7
Anyone point me in the right direction?
Thanks