XL2000: How to Programmatically Make Sure That Only Numbers Are Entered in a Column (213358)
The information in this article applies to:
This article was previously published under Q213358 SUMMARY
This article contains a sample Microsoft Visual Basic for Applications
Sub procedure (macro) that you can use to ensure that only a certain type of data entry occurs. The macro in this article requires a user to enter only numbers in a specific column on a worksheet.
NOTE: The Validation command in the Data menu provides the same functionality as the sample macros in this article and has an expanded range of restrictions and validation message options.
REFERENCESFor more information about validating data in a worksheet, click Microsoft Excel Help on the Help menu, type specify the valid entries for cells 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 kbhowto kbProgramming KB213358 |
---|
|