Results 1 to 9 of 9

ActiveX Combobox ListFillRange

Threaded View

  1. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: ActiveX Combobox ListFillRange

    Quote Originally Posted by rabbit_post View Post
    I have an ActiveX ComboBox on sheet 2 which I am trying to populate with a dynamic named range on sheet 6. The dynamic named range has 2 columns both of which I wish to see in the combobox list. I have tried various suggestions from previous posts, couple of examples below, but I am missing something. The named range is not part of a table and being defined using the Offset function

    =OFFSET('Implement Defaults'!$B$10,0,0,COUNTA('Implement Defaults'!C2:C9999),2)


    With Sheet2.ComboBox1
             .ColumnCount = 2
             .ListFillRange = ""
             .ListFillRange = Sheets("Sheet6").Range("implementList").Value
    End With
    With Sheet2.ComboBox1
             .ColumnCount = 2
             .ListFillRange = ""
             .List = "=Sheet6!" & Sheet6.Range("implementList").Address(Extrernal=True)
    End With

    Any ideas where I am going wrong
    could be column widths need to be defined.
    .ColumnWidths = 50
    or whatever width you want
    And i would delete this line
    .ListFillRange = ""
    Since ListFillRange is a parameter in the properties, it will reflect whatever the last value it was given and does not need to be cleared beforehand.
     .ListFillRange = "=Sheet6!" & Sheet6.Range("implementList").Address
    The .Address is correct, but I am not so sure about the '(External = True)' part. Don't know if the Properties class is set up to accept that.
    Last edited by JLGWhiz; 02-11-2018 at 04:09 PM.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Dynamic ListFillRange for ActiveX Listbox
    By PFDave in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-15-2016, 08:01 AM
  2. ActiveX ComboBox Control: add items without using ListFillRange Property
    By Axmed.cm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-26-2016, 09:53 AM
  3. [SOLVED] limits of what you can and cannot fill a listfillrange with for ActiveX-Control Listbox
    By cmore in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-22-2013, 10:49 AM
  4. [SOLVED] Not able to populate ActiveX Combobox control, listfillrange with rowlist
    By SAGAR KHOLLAM in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-10-2012, 03:54 AM
  5. ActiveX ComboBox ListFillRange only updates when I close and reopen the workbook
    By nenadmail in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-16-2012, 08:57 AM
  6. ActiveX ComboBox listfillrange automatic update
    By Makafi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-01-2009, 01:54 PM
  7. ListfillRange for ComboBox
    By oldbyte in forum Excel General
    Replies: 0
    Last Post: 02-23-2005, 05:35 PM

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