• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

TextBox contain only numeric value

delta

Member
TextBox 1 To 10 store only numeric value by loop and any TextBox empty btween TextBox 11 To 15 than message box show enter any value
how it is made by vba loop
 
Code:
Dim i As Integer
For i = 1 To 10
  If IsNumeric(Controls("Textbox" & i).Value) Then
  'textbox is numeric
  Else
  'textbox is non-numeric
  End If
Next i
 
Back
Top