+ Reply to Thread
Results 1 to 7 of 7

Trying to get the row number

  1. #1
    Registered User
    Join Date
    12-09-2019
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2016
    Posts
    9

    Trying to get the row number

    I am very new to VBA.

    I have a simple user form that has a couple of drop down boxes. The drop down boxes are limited by the date and the second one is dynamic off the first.

    My question is that once the two selections are made I need to know what row the values are on. Or a way to count down to that row?

    Hope this makes sense.

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    11-26-2012
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    419

    Re: Trying to get the row number

    I think this is what you are after:
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-09-2019
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2016
    Posts
    9

    Re: Trying to get the row number

    MGS73 - Thank you for the response. I do not think that is what I want or at least I do not know how to get the result I am looking for with it.

    Perhaps this is an easier way of asking the question.

    Please Login or Register  to view this content.
    The above code works and gives me the one answer I am looking for. But I also need the row number the answer is found on. It is in the Items Item list but I cannot figure out how to get it to tell me the row number when it finds the answer.

    All help is greatly appreciated.

  4. #4
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Trying to get the row number

    A sample workbook would make life a lot easier to provide a solution

  5. #5
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Trying to get the row number

    Perhaps something like this might help.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  6. #6
    Registered User
    Join Date
    12-09-2019
    Location
    Memphis, TN
    MS-Off Ver
    Excel 2016
    Posts
    9

    Re: Trying to get the row number

    Thank you Bakerman2. That works wonderfully.

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Trying to get the row number

    You're welcome and thanks for rep+.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Converting number to actual text of number (spelling out the number)
    By rfigueroa1976 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-18-2019, 11:05 AM
  2. Replies: 17
    Last Post: 05-16-2016, 01:22 AM
  3. [SOLVED] Macros to mark number in a column, if number is x+10, given previously marked number x.
    By aleem5 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2015, 07:49 PM
  4. Replies: 1
    Last Post: 02-04-2015, 03:54 PM
  5. Replies: 10
    Last Post: 10-30-2013, 07:29 PM
  6. Lookup largest number in a column treating negative number as postive number
    By xWiZardx in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-17-2010, 08:09 AM
  7. Replies: 7
    Last Post: 12-18-2008, 07:34 PM

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