+ Reply to Thread
Results 1 to 10 of 10

Pass an array collected from textboxes to a multicolumn listbox as an next entry

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

    Pass an array collected from textboxes to a multicolumn listbox as an next entry

    I have been trying many variation but have only succeeded in populating the listbox vertically instead of as a new line entry to a listbox. Help appreciated, not very well covered in google
    Please Login or Register  to view this content.
    Last edited by nigelog; 12-19-2018 at 09:06 AM.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Pass an array collected from textboxes to a multicolumn listbox as an next entry

    Have you tried Column property instead of List?
    i.e
    Please Login or Register  to view this content.

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

    Re: Pass an array collected from textboxes to a multicolumn listbox as an next entry

    Hi Jindon, no go I'm afraid, just succeeds in clearing previous entries in the listbox

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Pass an array collected from textboxes to a multicolumn listbox as an next entry

    Then try change the array with .Value property
    Please Login or Register  to view this content.

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

    Re: Pass an array collected from textboxes to a multicolumn listbox as an next entry

    Thanks Jindon, that now writes to the listbox. Strange as the data could be viewed in Debug.Print. It overwrites the items in the listbox though can it be be directed to become either the first or subsequent entry in the listbox

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Pass an array collected from textboxes to a multicolumn listbox as an next entry

    Do you want it like this?
    Please Login or Register  to view this content.
    Edited; code
    Last edited by jindon; 12-19-2018 at 08:32 AM.

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

    Re: Pass an array collected from textboxes to a multicolumn listbox as an next entry

    Hi Jindon
    Faults on
    Please Login or Register  to view this content.
    .List = Could not get the list property invalid argument
    .ListCount = 1
    i = 0

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Pass an array collected from textboxes to a multicolumn listbox as an next entry

    Yep, that I realized and edited the previous code, ListCount -1

    Please Login or Register  to view this content.

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

    Re: Pass an array collected from textboxes to a multicolumn listbox as an next entry

    Hi Jindon just saw that. Many thanks for your kind assistance. I will mark as solved

    Have a great Christmas

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: Pass an array collected from textboxes to a multicolumn listbox as an next entry

    You are welcome and thanks for the rep.

    Same to you...

+ 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] Pass values of UserForm TextBoxes to 2D Array
    By esbencito in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-26-2018, 05:20 AM
  2. Replies: 7
    Last Post: 03-12-2017, 03:20 PM
  3. sort multicolumn listbox by colomn 1 last entry first
    By tankje in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2016, 02:45 PM
  4. [SOLVED] Add to a multicolumn listbox using two textboxes and one command button
    By ChrisPatterson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-30-2014, 07:08 AM
  5. [SOLVED] Listbox column headers when data is collected in an array
    By evertjvr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2012, 09:44 PM
  6. How do I pass an array to a listbox?
    By Titus A Ducksass - AKA broken-record in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-23-2005, 04:06 PM
  7. Select multiple listbox items and pass to an array
    By golzilla in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-13-2005, 05:49 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