ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Unique data in control arrey of textboxes (https://www.excelbanter.com/excel-programming/319440-unique-data-control-arrey-textboxes.html)

Shetty

Unique data in control arrey of textboxes
 
I have a control arrey of 10 text boxes (from 0 to 9) on a form.
After user enters data in text boxes, and clicks on commandbutton "GO",
I want to validate the data.
Validation rules:
1. data must be numaric from 0 to 9 only
2. each number entered must be unique, duplicate numbers not allowed.
3. each number must start with 093
4. each number must have 11 digits, no more no less.

If any rule is violated, I want to warn the user and want them to
re-enter the data. The macro should proceed only when above criteria is
meet with.

Second problem is:
I want to process only non blank textboxes.
I can loop thru it but how can I ignore blank text boxes?
Thanks for any help.
Regards,
Shetty



All times are GMT +1. The time now is 03:56 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com