+ Reply to Thread
Results 1 to 6 of 6

Listbox > 10 Columns Max reached

  1. #1
    Registered User
    Join Date
    12-12-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    23

    Post Listbox > 10 Columns Max reached

    Hi All ,

    I have a recently need to add a column to update via UserForm.
    I realize that Listbox is only allowed 10 Items Max.
    can anyone can suggest any workaround.

    I need to submit this assignment.

    I have attached the File , Once i added the last column , the file fail to work.

    I need to update the additional column via userform into the file.
    Any suggestion is very much appreciated.

    thanks very much.

    CHeers ,
    WaiHar
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Listbox > 10 Columns Max reached

    Hi

    Perhaps you need to add conditions in this part of your code..

    Please Login or Register  to view this content.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    12-12-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Listbox > 10 Columns Max reached

    Hi Fotis

    initially the file works until --> Me.Listbox1.List(i, 9) = Cells(c.Row, 11).Value 'Text Comment

    by adding
    Me.Listbox1.List(i, 10) = Cells(c.Row, 12).Value 'Text Action itself error starts to appear error , tehrefore no way in adding ,

    Error i got was --> Me.Listbox1.List (i , 10) < Could not get List Property.Invalid Arguments


    Therefore no way i can proceed to add --> Me.Listbox1.List(i, 11) = Cells(c.Row, 13).Value

    you can try out the file attached.

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Listbox > 10 Columns Max reached

    You can't using the AddItem method (which you shouldn't be using anyway). You can either fill an array and pass it to the .List parameter of the listbox, or create a dummy array and fill in the blanks:
    Please Login or Register  to view this content.

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    There is no 10 column limit, use a different method to populate the listbox, eg an array.
    If posting code please use code tags, see here.

  6. #6
    Registered User
    Join Date
    12-12-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: Listbox > 10 Columns Max reached

    Hi Kyle123 ,

    Thanks , I make some changes , you can try out attached file , I was using F8 to check the output ,

    But funny , i wonder which part loops was giving me headache .it keep resetting it to 0 ,

    I now can get all columns into List Box (no Max issue) , just that i suppose have (3) rows , it seems to keep resetting to 0
    only the last rows shows all.

    Any idea of suggestions ?

    You can try - Country = EPA
    Search Box - Type "SDM Wai Har" --> Click on Find SDM Name.
    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] Count Columns Until Value Reached
    By phelbin in forum Excel General
    Replies: 7
    Last Post: 08-02-2021, 10:18 AM
  2. Replies: 1
    Last Post: 07-17-2013, 10:08 AM
  3. [SOLVED] Multi Select ListBox, 4 columns, use NamedRange, Columns to use in list Nonconsecutive
    By CRIMEDOG in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-29-2013, 11:01 AM
  4. Replies: 2
    Last Post: 08-23-2011, 09:48 AM
  5. Insert columns until a certain number has been reached
    By moglione1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-06-2006, 06:45 AM

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