Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Data Validation for TextBoxes
Im trying to figure out a way to add Data Validation for TextBoxes. Ive
used this technique befo If TextBox1 = "" Then MsgBox "Please enter a value for 'Name'!!" Exit Sub End If However, Im not sure how to limit a TextBox to a range of numbers, such as 1-6. How can this be done? Also, how can I do it for many TextBoxes, without specifically adding code for each? A for Each€¦Next should do it, but I may need to add Data Validation for several TextBoxes, such as 1-20, and then apply a slightly different set of Data Validation rules for other TextBoxes, such as 1-4 for TextBoxes 21-25. How would I go about doing that? Thanks!! Ryan--- -- RyGuy |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
code for conditional validation to textboxes | Excel Programming | |||
Validation subroutine for textboxes | Excel Programming | |||
Delete Data from textboxes | Excel Programming | |||
Show Results in TextBoxes, ONLY if All TextBoxes have Data in them | Excel Programming | |||
format validation in UserForm textboxes | Excel Programming |