Hi Everyone,
Before I start I think we've been here before but the posts I've found through searching, while useful, haven’t exactly helped me.
I have a textbox on a userform whereby I only want to allow the user to enter 6 characters, of which the first three must be alpha characters and the last three must be numerics.
There are two approaches therefore as far as I can see.
1. Let them enter whatever they please and check the format after
2. Restrict entry into the actual textbox.
In the first case I can see one way of doing it which is basically an enormous series of checks (i.e. IF statements I guess) and throw error messages back at the user and re-present the form. I can see myself creating enormous amounts of code though so I wondered if the board members might be able to do this in a far tidier fashion than I can??
In the second case, I don’t know how to do this at all.
In the following two threads, TSTom talks about Microsoft Masked Edit.
http://www.mrexcel.com/board/viewtopic.php?topic=4674&forum=2
http://www.mrexcel.com/board/viewtopic.php?topic=10170&forum=2
I do have this feature available when I right click my VBA toolbox, however, I get the same error reported as Mr Nick in the first of the two threads. Any ideas on how I get this little feature to work?
Thanks a lot folks.
Rgds
AJ
Before I start I think we've been here before but the posts I've found through searching, while useful, haven’t exactly helped me.
I have a textbox on a userform whereby I only want to allow the user to enter 6 characters, of which the first three must be alpha characters and the last three must be numerics.
There are two approaches therefore as far as I can see.
1. Let them enter whatever they please and check the format after
2. Restrict entry into the actual textbox.
In the first case I can see one way of doing it which is basically an enormous series of checks (i.e. IF statements I guess) and throw error messages back at the user and re-present the form. I can see myself creating enormous amounts of code though so I wondered if the board members might be able to do this in a far tidier fashion than I can??
In the second case, I don’t know how to do this at all.
In the following two threads, TSTom talks about Microsoft Masked Edit.
http://www.mrexcel.com/board/viewtopic.php?topic=4674&forum=2
http://www.mrexcel.com/board/viewtopic.php?topic=10170&forum=2
I do have this feature available when I right click my VBA toolbox, however, I get the same error reported as Mr Nick in the first of the two threads. Any ideas on how I get this little feature to work?
Thanks a lot folks.
Rgds
AJ