+ Reply to Thread
Results 1 to 3 of 3

Creating ComboBox Multiple Column List From Array

  1. #1
    Registered User
    Join Date
    05-27-2020
    Location
    Newport, Wales
    MS-Off Ver
    365
    Posts
    3

    Creating ComboBox Multiple Column List From Array

    My lack of experience is really starting to show. So please excuse my inexperience, however, I have received some help on this in a previous thread.

    The code that was send does work, although when I delved into the functions. I came evident that in the spreadsheet I have I needed to produce a uniqueID to re-surface the data and update the information held within different tabs.

    So what I have from the code below is a list of UniqueID's based on a criteria, however, I need to be able to produce a similar list, offsetting the returned data from Column "B", to Colum "A" (ie Column1 "UniqueID", Column2 "TaksName")

    Sample Code:

    Please Login or Register  to view this content.
    The next element is the ComboBox (CB_TaskList), which will have two colums to contain the data from the lists above:

    Column 1 = rDict1.keys and Column 2 = rDict2.key

    CB_TaskList.ColumnCount = 2
    CB_TaskList.ColumnWidths = "40;80"
    CB_TaskList.List(1.0)=rDict1.Keys (Fails) or CB_TaskList.Coumn(1)=rDict1.keys (Invalid Property Array Index)
    CB_TaskList.List(1,1)=rDict2.Keys (Fails) or CB_TaskList.Coumn(2)=rDict2.keys (Invalid Property Array Index)

    Any assistance would be gratefully received
    Attached Files Attached Files
    Last edited by Welshdpm; 06-26-2020 at 06:30 AM. Reason: Add Spreadsheet

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,613

    Re: Creating ComboBox Multiple Column List From Array

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    05-27-2020
    Location
    Newport, Wales
    MS-Off Ver
    365
    Posts
    3

    Re: Creating ComboBox Multiple Column List From Array

    Thank you for this, how do I get it to show both columns and text when selected. I assume I can search from CB_TaskList.Column(1).value. To pull the information from the Spreadsheet it is the MIC.... (UniqueID) which it searches for and Matches the relevant value?

+ 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] Creating multiple column randomized long list out of 114 names
    By terryhenderson in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-06-2019, 06:27 AM
  2. [SOLVED] Create ComboBox list from array
    By igormigor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2016, 06:29 AM
  3. Creating a top five list from an Array
    By gablet in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-07-2015, 03:22 PM
  4. Replies: 3
    Last Post: 07-08-2014, 03:10 PM
  5. Replies: 1
    Last Post: 12-01-2010, 04:51 AM
  6. ComboBox.list = Array Validation problem
    By D3Pratt in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-10-2009, 05:30 PM
  7. [SOLVED] Creating a single vertical array from multiple column arrays
    By Bryan in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-10-2005, 03:15 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