+ Reply to Thread
Results 1 to 6 of 6

Listbox add item multicolumn

  1. #1
    Forum Contributor
    Join Date
    07-16-2009
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2013
    Posts
    114

    Listbox add item multicolumn

    I'm trying to add items to the second column of a listbox using vlookup but i keep getting a run-time error 380 "cound not set the List property. Invalid property value.

    I can't figure out what is going on. the column count is set to 2 on the listbox.

    Please Login or Register  to view this content.
    it fails on this line

    Please Login or Register  to view this content.
    any help would be great

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Listbox add item multicolumn

    Any chance you could upload a sample workbook?

    Click on GO ADVANCED, scroll down and click Manage Attachments.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    07-16-2009
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2013
    Posts
    114

    Re: Listbox add item multicolumn

    Here you go
    Attached Files Attached Files

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Listbox add item multicolumn

    Hi,

    You may want to take a look at the first line of your Userform_Initialize routine.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  5. #5
    Forum Contributor
    Join Date
    07-16-2009
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2013
    Posts
    114

    Re: Listbox add item multicolumn

    I switch it back to 2 when the customer class module is run

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Listbox add item multicolumn

    Oh- it is because you assign a 1D array to the list. Although the column count remains 2 the second column is inaccessible as best I can tell.

+ 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] Populate multicolumn listbox
    By Petter120 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-15-2014, 07:56 AM
  2. Multicolumn dynamic Listbox - Remove Duplicates in Listbox
    By s2jrchoi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-13-2014, 12:30 PM
  3. multicolumn listbox formating
    By kmeld in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-31-2013, 09:09 AM
  4. Having problems populating a multicolumn listbox changing Listbox column with a loop.
    By Aristizabal95 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2013, 12:41 PM
  5. Copy Selected items from multicolumn, multiselect listbox to another listbox
    By Willigb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-19-2013, 11:27 AM
  6. Multicolumn ListBox
    By pankaj2610 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-01-2013, 11:59 PM
  7. Problems with multicolumn listbox
    By VBA_Anfänger in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2007, 04:07 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