+ Reply to Thread
Results 1 to 6 of 6

Help with a userform to enter data into cells in a matched row

  1. #1
    Registered User
    Join Date
    02-01-2012
    Location
    Omaha, NE
    MS-Off Ver
    Excel 2003
    Posts
    8

    Help with a userform to enter data into cells in a matched row

    I have a user form that enters basic inventory data into the first open row.
    Column A is the bin location that I want to never change.
    Columns B – F are where the userform data is put in.
    Columns G-J contain information on what Contents will fit in the corresponding bin location in Column A.

    I need to put the data from the userform into the first open bin location (A)row in the cells (B-F).

    I need a code that will match the “contents” text typed into the user form with one of the placement columns (G-J) and put it into the first matching bin location (A) that is empty.

    If there are no open cells, I would like a text message saying “There are no open locations”.

    I have it partly mapped out, but can’t figure out the code. I’ve attached a sample of my worksheets. Thanks for any help you can provide.
    Attached Files Attached Files
    Last edited by luke8182; 03-12-2012 at 12:47 AM. Reason: SOLVED

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Help with a userform to enter data into cells in a matched row

    just to make sure i understand, the user will enter information into the form, the Contents field will match one of the rows in column G-H, so the macro should go row, by row, looking for an empty one, when it finds an empty row check in the contents entered matches one of the contents fields, if yes, fill data B-F

    correct?
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Help with a userform to enter data into cells in a matched row

    Maybe something like this
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    02-01-2012
    Location
    Omaha, NE
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Help with a userform to enter data into cells in a matched row

    Correct. If the text box "Contents" in the userform matches a cell in "Placement" Columns (G-H). Column A & G-H will not ever be empty. Userform info goes into Columns B-F. The userform is currently set up to open when clicking on the rectangle to the right. I would also like a text box that either says what column A is or that there is no match, which ever is applicable.

  5. #5
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Help with a userform to enter data into cells in a matched row

    im sure the solution provided by nilem will work, but since i was already writing it:

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-01-2012
    Location
    Omaha, NE
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Help with a userform to enter data into cells in a matched row

    Fantastic. Thanks, it works great.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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