XL97: No Data Validation Property for UserForm TextBoxes (158749)
The information in this article applies to:
- Microsoft Excel 97 for Windows
This article was previously published under Q158749 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 97, you cannot use a property that allows you to
validate the data. This behavior is different from earlier versions of
Microsoft Excel. 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.
REFERENCES
For more information about TextBoxes, from the Visual Basic Editor, click the
Office Assistant, type textbox, click Search, and
then click to view "TextBox Control."
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbProgramming KB158749 |
---|
|