DATA VALIDATION

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

Guest

I NEED TO VALIDATE ENTRIES.
EACH ENTRY CONSIST OF A NUMBER AND A LETTER
LIKE 6A OR 6B.
A, AND B TO BE ACCEPTED ONLY IF THEY ARE FROM THE ENGLISH ALPHABET
 
Hi!

Do you mean a single digit (0...9) and a single letter( A...Z) ?

If so, one simple way is to create a data validation list with all th
possible combinations. The following very basic VBA routine will pu
such a list in column A.

Sub fillit()

r = 1
For i = 0 To 9
For j = 1 To 26
Cells(r, 1) = i & Chr(j + 64)
r = r + 1
Next
Next


End Sub

Are you familiar with Data > Validation?

Al
 

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