Results 1 to 3 of 3
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    IF then with range of string value... (2000)

    I have a var named AREA (dimensioned as string)
    it can have a value with 4 digit, example: 0014,0097,9914...
    how to intercept AREA if is in rabge <1000 and >0001 in this case 9914 not is in range...
    when the value in range is found appear msgbox ("found")

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: IF then with range of string value... (2000)

    Dim lngVal As Long
    lngVal = CLng(AREA)
    If lngVal > 1 and lngVal < 1000 Then
    MsgBox "Found"
    End If

  3. #3
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: IF then with range of string value... (2000)

    ok WORK....naturally!

Posting Permissions

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