Hello
How do I let a certain cell accept confined with two restrictions such as (text length = 7 and this text to be numeric)?
Hello
How do I let a certain cell accept confined with two restrictions such as (text length = 7 and this text to be numeric)?
this goes into your worksheet module, sets A1 as the target![]()
Please Login or Register to view this content.
You might need to use a macro triggered by the worksheet change event to test for this more complex criteria.
Martin
Hi,
If you don't need a macro then use this in Tools > Data Validation
=AND(ISNUMBER(A1),LEN(A1)<=7)
VBA Noob
_________________________________________
![]()
![]()
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
Thanks VBA Noob, your way worked the best, and thanks a lot to the rest as well, they were very jelpful as well
Hi cgi_pro,
Thanks for the feedback.
Glad I could help
VBA Noob
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks