+ Reply to Thread
Results 1 to 9 of 9

Populate complex data in listbox

  1. #1
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Populate complex data in listbox

    Hi Dear

    I have trying to populate a data in a listbox1

    i have five columns with names and records A,B,C,D

    Every name can have at least 1 record and maximum 4 records

    I want to populate the data in a listbox.
    I need to repeat the name in each record.

    I have attached the file with the desired output.

    Thank you
    Ahmed
    Attached Files Attached Files
    GUURE

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

    Re: Populate complex data in listbox

    Try
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Re: Populate complex data in listbox

    Dera Jindon

    Thank you.
    Well done and helpful
    But if the records becomes non-numeric it pops up an error.
    could you solve this
    with thanks in advance

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

    Re: Populate complex data in listbox

    Can you just change
    Application.Count to Application.CountA
    ?


    Sending from phone

  5. #5
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Re: Populate complex data in listbox

    Thank you dear Jindon.
    functioning well.
    I want to add two columns between names and records with information I don't want to appear in the listbox.
    How that affects the VBA Code?
    Thanks again

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

    Re: Populate complex data in listbox

    It depends,

    If you want to use the added 2 columns data later, you could load the data and hide the columns in list box.
    If you do not, then
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231
    Dear Jindon
    I was trying to avoid to share my real file. Thus attahed a sample of what I meed. But it got difficult to me to apply your code with my file.

    I have attached part of my file and desired output.
    I am very sory but thankful for consuming your valuable time.
    Thanks more
    Attached Files Attached Files

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

    Re: Populate complex data in listbox

    Change to
    Please Login or Register  to view this content.

  9. #9
    Forum Contributor Axmed.cm's Avatar
    Join Date
    02-05-2015
    Location
    Somalia
    MS-Off Ver
    2013
    Posts
    231

    Re: Populate complex data in listbox

    Thanks dear jindon.
    Solved 100%

+ 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. Populate ActiveX ListBox with Data that met a Certain Condition
    By Jonathan78 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2016, 11:28 PM
  2. [SOLVED] Listbox to populate data from column B
    By bimmy80 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-30-2015, 11:11 PM
  3. [SOLVED] How to populate Listbox with last 5 rows of data
    By jet2004uk in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-06-2015, 01:47 AM
  4. Replies: 1
    Last Post: 07-24-2014, 02:08 PM
  5. Populate data in 2 column listbox using vba
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-10-2014, 04:49 AM
  6. Populate data in listbox in a form
    By fatalcore in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2012, 09:42 AM
  7. [SOLVED] Populate row with data from ListBox
    By plank in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-15-2012, 04:13 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