Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default does textbox contain a number

i need a statement that can evaluate whether or not a text box's value/text
is a number or not?
TIA


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default does textbox contain a number

Spencer,

You can use the IsNumeric function to test whether a text string
is numeric.E.g.,

If IsNumeric(Me.TextBox1.Text) = True Then
' is a number
Else
' not a number
End If


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com





"Spencer Hutton" wrote in message
...
i need a statement that can evaluate whether or not a text

box's value/text
is a number or not?
TIA




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Number format TextBox? hoyos Excel Discussion (Misc queries) 2 November 8th 09 11:04 PM
Assigning Row Number to TextBox Ayo Excel Discussion (Misc queries) 0 May 30th 08 08:24 PM
Getting a number from a textbox to use in a vb formula Art Dawson Excel Programming 1 December 12th 03 11:03 PM
Textbox number formatting Mike[_60_] Excel Programming 1 November 14th 03 10:03 PM
textbox.value doesn't create a number? Larry Levinson Excel Programming 2 September 5th 03 05:52 PM


All times are GMT +1. The time now is 08:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"