Results 1 to 10 of 10

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

Threaded View

nigelog Pass an array collected from... 12-19-2018, 07:32 AM
jindon Re: Pass an array collected... 12-19-2018, 07:55 AM
nigelog Re: Pass an array collected... 12-19-2018, 08:04 AM
jindon Re: Pass an array collected... 12-19-2018, 08:06 AM
nigelog Re: Pass an array collected... 12-19-2018, 08:13 AM
jindon Re: Pass an array collected... 12-19-2018, 08:23 AM
nigelog Re: Pass an array collected... 12-19-2018, 08:38 AM
jindon Re: Pass an array collected... 12-19-2018, 08:59 AM
nigelog Re: Pass an array collected... 12-19-2018, 09:06 AM
jindon Re: Pass an array collected... 12-19-2018, 09:09 AM
  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
    Sub CommandButton1_Click()
    Dim arr1 As Variant
    Dim r As Integer
    arr1 = Array(TB0, tb1, cb1, tb3, tb4, cb2, tb5)
                    '''Dim str As String
                    '''str = Join(arr1)
                    '''MsgBox str
    MsgBox Join(arr1)
    ReDim arr1(0, 6)
            For r = LBound(arr1) To UBound(arr1)
            ListBox1.ColumnCount = 7
            ListBox1.List = arr1
               
            Next
    
    End Sub
    Last edited by nigelog; 12-19-2018 at 09:06 AM.

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. [SOLVED] 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