+ Reply to Thread
Results 1 to 3 of 3

populate listbox with array

  1. #1
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    populate listbox with array

    Hi
    I have a created array of 8 items passed from a userform to another, I have tried 1 dimension array (1 to 8) and two dimension array (1 to 8,1 to 1) - (by transposing 1D array) but I can only get it to display as a vertical entry in the listbox rather than horizontally. I have tried many methods and variations of methods but no go...please someone put me out of this misery

    Please Login or Register  to view this content.
    Last edited by nigelog; 04-29-2021 at 10:33 AM.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,911

    Re: populate listbox with array

    Instead of transposing the array, just assign it to the Column property of the listbox.
    Rory

  3. #3
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: populate listbox with array

    Please Login or Register  to view this content.
    Thankyou so much
    Last edited by nigelog; 04-29-2021 at 11:09 AM.

+ 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] Excel VBA: Autofilter with array and populate listbox
    By Narozsnikz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2021, 03:18 AM
  2. Populate an array from Listbox items
    By hemantparmar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-21-2019, 12:11 AM
  3. Any limit to store table data in 2D Array to populate in ListBox
    By hemantparmar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-21-2019, 03:32 AM
  4. How to read table in an array and populate a listbox with the array
    By waimea in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-01-2019, 11:43 AM
  5. [SOLVED] Can't populate an array with selected items from listbox
    By jamesdeuce in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-16-2014, 09:57 PM
  6. [SOLVED] Populate Listbox with all rows of a dynamic array where elements of a single array match.
    By Tayque_J_Holmes in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 08-07-2012, 04:54 AM
  7. VBA - Can I populate a listbox from an array taken from a listview selection
    By PDIreland in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-22-2012, 06:28 AM

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