Results 1 to 9 of 9

Auto-Populate Cells Based on Drop Down Selection - VBA Excel

Threaded View

  1. #1
    Registered User
    Join Date
    02-07-2017
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Auto-Populate Cells Based on Drop Down Selection - VBA Excel

    Hello,
    Please see the attached two documents, one is a template and the other is a master. They are both simply an example with generic data and headers. I am trying to make a document ("Template") which contains a drop-down in a column, Header 6, in this example. When a product is selected from that drop-down, I would like all of the information in the Template document to be auto-populated into the correct columns with the data found in the Master document.

    The Master document has various tabs for each process as you can see. In the real document, I made this example for privacy purposes, the headers are not named numerically as so. Also, the document is very fluid, so columns will be added and deleted a lot. Therefore, the auto-population has to be able to find the correctly named header and insert the data based on the selected product from the drop-down.

    Please see the attached Master and Template examples for more clarification.

    What do you guys think is the best way to tackle this?

    Currently, I have started by using a change event sub. I have started using a find function to locate the column in both the Template and Master document based on the header names, that way if the columns are moved around it will still find the correct column. There are over 100+ columns in the real document, so there are a lot of arguments in the function. Once I have the correct locations, I was thinking of putting all of the master information and locations into an array, and all of the template locations into another array, then using both arrays to place the information in the template.

    Any better ways? The way I'm doing it seems very long and tedious.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Auto-populate cells based on drop down list selection
    By sh1483 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-01-2016, 11:59 PM
  2. [SOLVED] Auto-populate fields based on drop down selection
    By kwo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-23-2015, 07:15 AM
  3. Auto Populate cells based on Drop-down selection
    By stepzuko in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-11-2014, 03:02 PM
  4. Replies: 6
    Last Post: 01-02-2014, 10:38 AM
  5. drop down selection to auto populate multiple cells
    By chika90 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-03-2013, 10:08 AM
  6. Auto-populate field based on drop down box selection
    By nicfarrell in forum Excel General
    Replies: 7
    Last Post: 01-21-2013, 12:47 AM
  7. Replies: 3
    Last Post: 01-13-2006, 04:30 PM

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