+ Reply to Thread
Results 1 to 3 of 3

populating cells, based on a selection from a menu - with VBA instead of an Array Index ??

  1. #1
    Registered User
    Join Date
    03-27-2012
    Location
    Sofia
    MS-Off Ver
    Excel 2010
    Posts
    46

    populating cells, based on a selection from a menu - with VBA instead of an Array Index ??

    Guys,

    I was wondering if anyone has an alternative to what I am trying to do, that can be accomplished in a way that doesn't take as much processing power and time, as the way I have it right now?

    I basically have a menu, where I make a selection and based on that selection I get a list with a bunch of names of people. Then I have a bunch of vlookups to populate other data, pertaining to those names.

    The problem is that with the current setup, where I have the following array formula - if(iserror(index(... small( .. row( - it takes about 10 seconds to populate those names for a small list at the moment (that I want to expand soon, which would make things even worse).

    So I was wondering if there's another way to get this accomplished? That's not such a strain on resources? Perhaps with VBA?

    Thank you very much in advance for any ideas guys!!!


    PS: I have attached a quick and very stripped example of what I am trying to do with just a few items, where it still takes 2-3 seconds (in the lower right corner I see (Calculating (4 processors) % counter)) - https://drive.google.com/file/d/0B6S...w?usp=drivesdk
    Attached Files Attached Files
    Last edited by AlienPump; 12-13-2017 at 04:28 AM.

  2. #2
    Registered User
    Join Date
    03-27-2012
    Location
    Sofia
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: populating cells, based on a selection from a menu - with VBA instead of an Array Inde

    Essentially I am looking for the same functionality of a pivot table, but instead of controlling it with the "filter", to control it with a data validation drop down menu, if that makes sense.
    And hopefully there's a way to do it without slicers.
    Last edited by AlienPump; 12-13-2017 at 04:43 AM.

  3. #3
    Valued Forum Contributor
    Join Date
    06-29-2014
    Location
    Australia
    MS-Off Ver
    MSO 365
    Posts
    1,101

    Re: populating cells, based on a selection from a menu - with VBA instead of an Array Inde

    Hello AlienPump,

    Try the following code in a standard module and assigned to a button:-


    Please Login or Register  to view this content.
    Once a name is selected in sheet1 cell B2, the code uses autofilter to filter all the values associated with that name in sheet2(Roster),Column D and then transfers the relevant name and language to sheet1(Manager).

    I've attached your sample workbook with the code implemented and the pivot table removed.
    Select a name from the drop down in sheet1, cell B2 and then click on the "RUN" button.

    I hope that this helps.

    Cheerio,
    vcoolio.
    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. [SOLVED] Help populating / filtering list based on multi drop down menu's
    By MarkPr in forum Excel General
    Replies: 5
    Last Post: 10-23-2017, 10:17 AM
  2. Using VBA to populate specific cells based on drop down menu selection
    By ChemEAG in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-28-2015, 10:17 AM
  3. Replies: 0
    Last Post: 05-27-2015, 06:06 AM
  4. Populating Cells Based on Single Cell Selection
    By dantmaldo in forum Excel General
    Replies: 6
    Last Post: 05-09-2014, 12:15 PM
  5. Replies: 3
    Last Post: 01-31-2013, 06:22 PM
  6. Auto filling cells based on drop down menu selection
    By Candace84 in forum Excel General
    Replies: 1
    Last Post: 11-19-2010, 02:59 AM
  7. [SOLVED] need to populate several cells based on drop down menu selection
    By TerriF in forum Excel General
    Replies: 1
    Last Post: 05-18-2005, 06:06 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