+ Reply to Thread
Results 1 to 3 of 3

populating userform combo box from dynamic named range

  1. #1
    Registered User
    Join Date
    04-03-2010
    Location
    Orlando, FL
    MS-Off Ver
    Office 365
    Posts
    94

    populating userform combo box from dynamic named range

    Hi All,

    I have a userform which gets its data from a dynamic named range. The combo box is properly populated if there is more than one item in the list, but throws up a "run-time error 381: Could not set List property. Invalid property array index" if there is only one item in the list. I'm hoping there is a simple solution to this. The code I'm using for this is (in case it can be helpful):
    Please Login or Register  to view this content.
    Further investigation indicated to me that the problem is that the userform is starting from a named range which "grows", starting from an index of zero. This is the source of the problem. What is the workaround?

    This is cross-posted at http://www.mrexcel.com/forum/excel-q...med-range.html.

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

    Re: populating userform combo box from dynamic named range

    Perhaps.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    04-03-2010
    Location
    Orlando, FL
    MS-Off Ver
    Office 365
    Posts
    94

    Re: populating userform combo box from dynamic named range

    That did the trick! Thanks much!

+ 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] dynamic named range not populating combo box list if range = single cell
    By HeyInKy in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-24-2014, 05:27 PM
  2. [SOLVED] Populate userform combo box with named dynamic list
    By HeyInKy in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-28-2014, 05:17 PM
  3. Auto populating combo box on userform with filtered range
    By Serapiace in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-20-2014, 10:23 PM
  4. [SOLVED] Populating ComboBox using dynamic named range - Error
    By TC1980 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-16-2014, 05:42 AM
  5. [SOLVED] Adding dynamic named ranges to combo boxes in userform
    By Spritz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-04-2013, 09:45 AM
  6. listbox populating on userform with named range
    By kmsoni in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-28-2011, 01:37 PM
  7. listbox populating on userform with named range
    By kmsoni in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-27-2011, 02:31 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