Consulting

Results 1 to 2 of 2

Thread: numeric

  1. #1
    VBAX Tutor
    Joined
    Dec 2009
    Posts
    295
    Location

    numeric

    hi
    how can check with the help of vba if cells value is numeric or not?

    thanks

  2. #2
    VBAX Regular
    Joined
    Sep 2010
    Posts
    40
    Location
    hi,
    i use something like this
    [VBA]Private Sub Worksheet_Change(ByVal Target As Range)
    'lets say your cells value is on sheet1 @ cell a1
    If Not IsNumeric(Sheets("sheet1").Range("a1").Value) Then
    MsgBox "not number"
    End If
    End Sub[/VBA]
    on the sheet module.
    hope this helps.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •