+ Reply to Thread
Results 1 to 6 of 6

how to set row source/List fill range for ActiveX control Listbox via VBA code.

  1. #1
    Registered User
    Join Date
    09-05-2014
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    13

    how to set row source/List fill range for ActiveX control Listbox via VBA code.

    Hi guys,

    I have table from AA11 to AJ11, that table is continuously updating depending on the data coming from SQL.
    Im trying to capture all the data from the table and place it on my existing ActivexListbox.
    the problem im experiencing is the list fill range i declared is questionably changing after several file refresh.

    im thinking of a code that will declare what specific List range for my activeXlistbox1 after the refresh.

    something like:

    Please Login or Register  to view this content.

    I don't know how to deal with activex listbox.
    advance thank you.

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,177

    Re: how to set row source/List fill range for ActiveX control Listbox via VBA code.

    no matter how many records in your table, the form load will load all iems from the updates.

    Please Login or Register  to view this content.

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: how to set row source/List fill range for ActiveX control Listbox via VBA code.

    Do you only have one row of data?
    If posting code please use code tags, see here.

  4. #4
    Registered User
    Join Date
    09-05-2014
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    13

    Re: how to set row source/List fill range for ActiveX control Listbox via VBA code.

    can you explain how it works? Im trying to declare the List range via VBA

    sorry, the exact List range should be: RAW!AA11:AJ100

    thank you

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: how to set row source/List fill range for ActiveX control Listbox via VBA code.

    I'm a little confused, you say the 'exact' range is AA11:AJ100 but in your first post you seem to be saying that could change.

  6. #6
    Registered User
    Join Date
    09-05-2014
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    13

    Re: how to set row source/List fill range for ActiveX control Listbox via VBA code.

    Hi Norie,

    since im pulling data from SQL, the table could have different number of data.
    so I only set that range (AA11:AJ100 ) to capture into my listbox.
    so the logic is just to display it in my listbox.

+ 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] Changing the Input Source of an ActiveX listbox
    By TheScott in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-30-2015, 07:57 AM
  2. [SOLVED] fill listbox (ActiveX) based combobox (ActiveX)
    By elsg in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-31-2014, 11:25 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. Display selected entries from an ActiveX Control Listbox
    By ColleenL in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-10-2009, 04:16 PM
  5. listbox control source causing error
    By racudd in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 10-28-2008, 08:02 AM
  6. Help with activex listbox control
    By programmer123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-02-2005, 04:05 PM
  7. ActiveX Listbox Control
    By TrendyProgrammer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-02-2005, 04:05 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