![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 26
|
How would I validate a userform text box, so there cn only be 4-8 characters in it? Thanks alot for any help. |
|
|
|
|
|
#2 | |
|
Board Regular
Join Date: Feb 2002
Posts: 468
|
set the property MaxLength of your textbox to 4 or 8
If the text must be -at least- 4 characters, you can controle the textlength with something like this : if userform1.TextBox1.TextLength < 4 then msgbox "The text is too short." end if _________________
[ This Message was edited by: Bruno on 2002-03-08 04:42 ] |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|