Results 1 to 9 of 9

Thread: populate control from named range stored in addin

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    This should work

    Code:
        Dim a
        
        a = ThisWorkbook.Worksheets("DATA").Range("myTypes").Value2
        
        With ComboBox1
            .List = a
        End With
    but not sure why the rowsource property is not working.
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

  2. #2
    Member
    Join Date
    Jul 2013
    Posts
    40
    Rep Power
    0
    I will take a shot and I will report back.
    Thanx !!!


    Edit:

    It seems to be working great with named ranges and the isaddin = false issue is gone. the userform loads properly and the listbox and combobox populate properly

    There is only one disadvantage, if the named range consists of 1 cell only then the listbox does not show anything.
    If it can be overcome then it will be perfect.
    Last edited by MrBlackd; 05-11-2016 at 12:22 AM.
    Keep in mind all vba I know has been googled...

Similar Threads

  1. setting loop code to check all named sheets
    By peter renton in forum Excel Help
    Replies: 9
    Last Post: 01-30-2014, 03:01 AM
  2. Replies: 15
    Last Post: 01-07-2014, 12:42 AM
  3. Replies: 4
    Last Post: 07-02-2013, 11:32 AM
  4. Populate data in form
    By Ryan_Bernal in forum Excel Help
    Replies: 4
    Last Post: 02-01-2013, 10:18 AM
  5. Replies: 4
    Last Post: 06-07-2012, 09:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •