Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am doing an order information form in VBA and have an area for credit
card numbers. We take all major credit cards, and so I have the card number broken up into 4 fields. The idea is that you do not need to press the tab button to go on to the next field, it will setfocus in a macro...but is there a way to test for a length of a certain number of digits in a field? (So if their are 4 numbers in textbox1, then setfocus textbox2) Right now I am using if then statements to determine if the number typed in is over 999, but this is flawed for discover cards, because the 2nd set of digits is usually 0000 for the number. Any ideas? Please post code example. Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pivot Table Page Field Issue (Not sorting) | Excel Discussion (Misc queries) | |||
Active X Controls Tabbing from Form Field 2 Form Field | Excel Discussion (Misc queries) | |||
Economical grouping of lengths out of much longer lengths | Excel Worksheet Functions | |||
How do I set up excel to tab from field to field in a form? | Excel Discussion (Misc queries) | |||
Text Box on User Form Set Focus Issue | Excel Programming |