+ Reply to Thread
Results 1 to 6 of 6

Finding row value of specific text

  1. #1
    Registered User
    Join Date
    08-10-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Finding row value of specific text

    Incredibly new to programming in excel so feel free to flame if I dont describe what i'm looking for accurately:

    Attempting to develop a userform to edit data contained within a sheet. I want the user to type text into a box and have the form auto-populate based on the data in the row containing the specified text. The only resource I have found for autopopulating a userform is via specifying the row # the data is contained in.

    Please help!

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Finding row value of specific text

    Hi newguy99
    welcome to the forum
    you could find the row address with this example from the VBA help files
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    08-10-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Finding row value of specific text

    Thanks for the rapid response! Unfortunately I am increadibly new to using VBA and am having a hard time deciphering how to apply this code to my project. Could someone be kind enough to give me the quick rundown on that section of code?

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Finding row value of specific text

    hi newguy99
    can you attach a sample workbook and i can add the code?

  5. #5
    Registered User
    Join Date
    08-10-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Finding row value of specific text

    In this sample, if I create a userform and a user inputs the city name, I want the county, population, age, literacy to auto-populate. The only way I think i can do this is using the cells method; and to do so I need the row number of the user-entered city. Of course, this is just my meager understanding thus far.
    Attached Files Attached Files

  6. #6
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Finding row value of specific text

    Newguy try this one
    Attached Files Attached Files

+ 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