Computing.Net > Forums > Office Software > Excel 2003 TextBox content Type

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Excel 2003 TextBox content Type

Reply to Message Icon

Name: KingG
Date: May 8, 2006 at 02:32:33 Pacific
OS: Windows XP
CPU/Ram: Intel Centrino
Product: Toshiba
Comment:

How can I set the type of the Content of a TextBox in Excel 2003. For Example, textBox only takes Integers and not Strings.
Thank You in advance



Sponsored Link
Ads by Google

Response Number 1
Name: rhawk7938
Date: May 8, 2006 at 13:06:33 Pacific
Reply:

Something like this should work.

Double click your textbox while in design mode and enter this code (change the box name if necessary):

Private Sub TextBox1_Change()

If Not IsNumeric(TextBox1.Text) Then
MsgBox ("enter only numbers")

End If

End Sub


0
Reply to Message Icon

Related Posts

See More


Excel 2002 Displaying Fra... Adobe toolbar in Microsof...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Excel 2003 TextBox content Type

Excel 2007 data bars for Excel 2003 www.computing.net/answers/office/excel-2007-data-bars-for-excel-2003/9304.html

saving the 2003 excel file into excel1997 www.computing.net/answers/office/saving-the-2003-excel-file-into-excel1997/9804.html

excel 2003 www.computing.net/answers/office/excel-2003/4585.html