+ Reply to Thread
Results 1 to 5 of 5

How to find a number or text in the selected range

  1. #1
    Registered User
    Join Date
    01-22-2007
    Posts
    50

    How to find a number or text in the selected range

    Hello

    How do you look for a wanted number or text in the selected range.
    The range is selected with Range("A10:C1000).Select

    How could I check if the number (which will be inputed through the Userform)
    is in the selected range, and further: how could I know in which Cell is it?

    Thanks for each advise and have a nice day.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524
    How could I check if the number (which will be inputed through the Userform)
    is in the selected range, and further: how could I know in which Cell is it
    Hi,
    Why do you need the address of the cell, what is the true function of the UserForm?

  3. #3
    Registered User
    Join Date
    01-22-2007
    Posts
    50
    Thanks for checking this.

    Through the Userform I put only the number, which one will have to be find in the range in the List. Actually it is not importnat.

    Important is folowing: the VBA select the range and inside this range I would like to check if the number (for exa,ple 67000) is in this range.
    Additioanly I would like to jump to the cell, where this number is and therefore I would need to know which this cell is.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524
    Quote Originally Posted by olio39
    Thanks for checking this.

    Through the Userform I put only the number, which one will have to be find in the range in the List. Actually it is not importnat.

    Important is folowing: the VBA select the range and inside this range I would like to check if the number (for exa,ple 67000) is in this range.
    Additioanly I would like to jump to the cell, where this number is and therefore I would need to know which this cell is.
    Cool,
    Here's a code from Ron de Bruin

    Please Login or Register  to view this content.
    This will select the first cell in column A with the InputBox value.


    Maybe you can get an idea from it

  5. #5
    Registered User
    Join Date
    01-22-2007
    Posts
    50
    Maybe you can get an idea from it[/QUOTE]


    Thanks a lot. I am sure this code will help me.

+ 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