XL2000: No Data Validation Property for UserForm TextBoxes (213555)
The information in this article applies to:
This article was previously published under Q213555 SYMPTOMS
When you add a TextBox control to a custom UserForm, you cannot use a property to automatically validate the data that is typed in the TextBox when you run a macro that displays the UserForm.
CAUSE
In Microsoft Excel 2000, you cannot use a property that allows you to
validate the data. This behavior is different from versions of Microsoft Excel earlier than Excel 97. In earlier versions, you can set the InputType property for an Edit Box control that you place in a custom dialog box.
RESOLUTION
To validate the data that is typed in a TextBox on a custom UserForm, create an event-driven macro that verifies the data. Please see the "More Information" section in this article for an example that shows you how to implement such a macro.
REFERENCESFor more information about TextBoxes, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type TextBox Control in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbprb kbProgramming KB213555 |
---|
|