+ Reply to Thread
Results 1 to 7 of 7

Combobox list 3 column

Hybrid View

johnreid7477 Combobox list 3 column 07-01-2013, 10:42 PM
vlady Re: Combobox list 3 column 07-01-2013, 11:13 PM
johnreid7477 Re: Combobox list 3 column 07-01-2013, 11:41 PM
johnreid7477 Re: Combobox list 3 column 07-02-2013, 02:49 AM
vlady Re: Combobox list 3 column 07-02-2013, 03:47 AM
johnreid7477 Re: Combobox list 3 column 07-02-2013, 03:58 AM
vlady Re: Combobox list 3 column 07-02-2013, 04:01 AM
  1. #1
    Registered User
    Join Date
    02-20-2013
    Location
    Jakarta
    MS-Off Ver
    Excel 2007
    Posts
    38

    Combobox list 3 column

    Hi All,

    Please help how to view combobox list until 3 Column .

    In Example
    Combobox PartID : (PARTID,TYPE)

    Need Result
    Combobox PartID : (PARTID,TYPE,PARTDESC)


    Thanks - John
    Attached Files Attached Files

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Combobox list 3 column

    create a named range with the 3 columns--->PARTID,TYPE,PARTDESC selected
    your named range say "ALL" refers to: =LookupLists!$E$2:$G$8

    in the properties of the combobox look for the "Column Count" change that to "3"
    then in the Listfillrange use the named range from the 3 columns ->
    Listfillrange: ALL
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    02-20-2013
    Location
    Jakarta
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Combobox list 3 column

    Quote Originally Posted by vlady View Post
    create a named range with the 3 columns--->PARTID,TYPE,PARTDESC selected
    your named range say "ALL" refers to: =LookupLists!$E$2:$G$8

    in the properties of the combobox look for the "Column Count" change that to "3"
    then in the Listfillrange use the named range from the 3 columns ->
    Listfillrange: ALL
    Hi Vlady,

    Thanks for support, i'm do until until step 2 ( "Column Count" change that to "3"), but i'm newbie for this VBA need help where's listfillrange .... if i not wrong for this code ..

    Me.cboPart.Clear
    For Each cPart In ws.Range("PartIDList")
      With Me.cboPart
        .AddItem cPart.Value
        .List(.ListCount - 1, 1) = cPart.Offset(0, 1).Value
      End With
    Next cPart
    or still properties combobox but no see listfillrange ...

    Thansk - John

  4. #4
    Registered User
    Join Date
    02-20-2013
    Location
    Jakarta
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Combobox list 3 column

    Please explain for more detail if i make stupid mistake

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Combobox list 3 column

    first offset returns "Type"
    .List(.ListCount - 1, 1) = cPart.Offset(0, 1).Value
    add another offset for the "Part Descr."

    .List(.ListCount - 1, 2) = cPart.Offset(0, 2).Value
    Last edited by vlady; 07-02-2013 at 04:03 AM.

  6. #6
    Registered User
    Join Date
    02-20-2013
    Location
    Jakarta
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Combobox list 3 column

    Quote Originally Posted by vlady View Post
    first offset returns "Type"
    .List(.ListCount - 1, 1) = cPart.Offset(0, 1).Value

    add another offset for the "Part Descr."

    .List(.ListCount - 1, 2) = cPart.Offset(0, 2).Value
    Hi Vlady,

    Do you mean be like this
    Me.cboPart.Clear
    For Each cPart In ws.Range("PartIDList")
      With Me.cboPart
        .AddItem cPart.Value
        .List(.ListCount - 1, 1) = cPart.Offset(0, 1).Value
        .List(.ListCount - 1, 2) = cPart.Offset(0, 2).Value 
      End With
    Next cPart
    I'm test and work like charm.

    Thank you very much - John

  7. #7
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Combobox list 3 column

    Nice to hear that.
    Your welcome and sorry for the delay.. have visitors.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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