Simple question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Quick question, I think it is easy but just cannot think
how to do it.

I want to check if a cell equals the following format.
n = Numeric Char
A = Alpha Char

N*AAANNNNN

The following 3*abc12345 would evaluate to true.

example if cells(1,1) = N*AAANNNNN then

Any help greatly appreciatted.
 
One way:

If Cells(1, 1).Value Like "#*[A-Z,a-z][A-Z,a-z][A-Z,a-z]#####" Then
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top