+ Reply to Thread
Results 1 to 3 of 3

How not number ?

  1. #1
    Marina Limeira
    Guest

    How not number ?

    I declared

    dim x

    and x is numeric in compare..
    x = sheet("G10")
    when G10 have a number is OK...
    but if G10 is empty ??

    How to make one comparation if X is not number ?

    thanks

    Marina



  2. #2
    DM Unseen
    Guest

    Re: How not number ?

    Dim x As variant

    x = Range("G10")

    If Isnumeric(x) then msgbox "we have a number!" else msgbox "we cannot
    compare this to a number!"

    DM Unseen


  3. #3
    Dave Peterson
    Guest

    Re: How not number ?

    dim x as Variant
    x = worksheets("sheet1").range("g10").value

    if application.isnumber(x) then
    msgbox "it's a number"
    else
    msgbox "it's not a number"
    end if


    Marina Limeira wrote:
    >
    > I declared
    >
    > dim x
    >
    > and x is numeric in compare..
    > x = sheet("G10")
    > when G10 have a number is OK...
    > but if G10 is empty ??
    >
    > How to make one comparation if X is not number ?
    >
    > thanks
    >
    > Marina


    --

    Dave Peterson

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1