+ Reply to Thread
Results 1 to 5 of 5

VBA Code for Auto-Populating Text From One Table to Another

  1. #1
    Registered User
    Join Date
    03-28-2017
    Location
    Appleton, Wisconsin
    MS-Off Ver
    2007
    Posts
    2

    VBA Code for Auto-Populating Text From One Table to Another

    I have a table that tracks a bunch of info such as, person, category, department, description, due date, and priority. I have, at best, extremely weak VBA skills, so I REALLY need help. Here is what I'd like to do, if it's even possible.

    I would like to have a VBA code that will auto-populate a table with information from a different table. In detail:

    When a "1" is put into the priority cell (I2:I20), the person (B2:B20), category (C2:C20), department (D2:D20), description (E2:E20), and due date (F2:F20) will auto-populate into cell E30.

    When a "2" is put into the priority cell (I2:I20), then the person (B2:B20), category (C2:C20), department (D2:D20), description (E2:E20), and due date (F2:F20) will auto-populate into cell E31.

    When a "3" is put into the priority cell (I2:I20), then the person (B2:B20), category (C2:C20), department (D2:D20), and description (E2:E20) will auto-populate into cell E32 (no due date).

    I should clarify that only one person, one category, one department, one description, and one due date can be listed per priority cell. (I hope that makes sense). So if I enter a "1" into cell I5 for example, then the person, category, department, description, and due date in row 5 will populate into cell E30. I am hoping that for each priority code that's entered into the table, a list will form in the designated spot in the table I'm wanting to populate (1 (urgent), 2 (top 3), or 3 (bull pen)). I'm not sure if it matters or not, but the person, category, and department have a drop down-box. I would also like for the priority to have a drop-down box, but I'm not sure if it's better just to leave blank for ease.

    Any assistance that can be provided would be MUCH appreciated. I have tried to attach my worksheet, but it won't attach for whatever reason. Perhaps what I'm asking for can't be done, in which case, please let me know. Thanks again for your help!
    Last edited by Rmkoonie; 03-28-2017 at 09:10 PM. Reason: Couldn't attach worksheet and wanted to explain.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: VBA Code for Auto-Populating Text From One Table to Another

    Here is how to attach a file. A sample workbook would help a lot.

    To Attach a File:

    1. Scroll down to the window below your post Additional Options
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    03-28-2017
    Location
    Appleton, Wisconsin
    MS-Off Ver
    2007
    Posts
    2

    Re: VBA Code for Auto-Populating Text From One Table to Another

    Thank you for the detailed instructions on how to attach the worksheet.
    Attached Files Attached Files

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: VBA Code for Auto-Populating Text From One Table to Another

    Duplicate post

  5. #5
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: VBA Code for Auto-Populating Text From One Table to Another

    I am not certain of the requirement. Here is my best guess.
    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)

Similar Threads

  1. How to get an auto populating table summarizing pivot data?
    By Meggo12 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-08-2016, 08:50 AM
  2. Auto-populating data into one spreadsheet from another table
    By excelhelp112 in forum Excel General
    Replies: 1
    Last Post: 12-17-2015, 09:59 AM
  3. Auto populating table from another table
    By welshman010 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-06-2014, 01:12 AM
  4. [SOLVED] Auto-populating a table based on ranked values
    By BWellman in forum Excel General
    Replies: 4
    Last Post: 02-03-2014, 07:03 PM
  5. [SOLVED] Prevent Graphs from auto populating dates not present in Table
    By retrospikz in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 06-26-2013, 02:53 AM
  6. Keeping same table range in auto-populating VLOOKUPs
    By FranklinBluth in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-06-2010, 11:45 AM
  7. Auto populating a summary table
    By vnasibi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2008, 08:31 AM

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