+ Reply to Thread
Results 1 to 4 of 4

Dynamic Range ComboBox Refresh

  1. #1
    Registered User
    Join Date
    02-11-2016
    Location
    Wisconsin
    MS-Off Ver
    07-360
    Posts
    53

    Exclamation Dynamic Range ComboBox Refresh

    Hi, I am wondering if it is possible to have a ComboBox with rowsource= Locations (Dynamic Named Range) that will refresh if another location is added on the range. Currently on the UserForm (UF1) there is a command button which will open a second UserForm (UF_AddLocation) which has the user add additional info for this new location (only the title is in the Dynamic Named Range). The ComboBox's (UF1.CB_Location) list Only shows what was in the dynamic range when the UserForm was opened. I have looked for a while and hope one of you may have the answer. Is there any way to have this refresh without having to close the form and lose all the other data entered? Thanks

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Dynamic Range ComboBox Refresh

    When writing the new location from your second userform to the sheet add following to that code.

    Please Login or Register  to view this content.
    That way the combobox on first userform is updated at the same time.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Registered User
    Join Date
    02-11-2016
    Location
    Wisconsin
    MS-Off Ver
    07-360
    Posts
    53

    Re: Dynamic Range ComboBox Refresh

    Thanks, wow, when I tried it before it didn't work, now it is, maybe compiling helped?

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Dynamic Range ComboBox Refresh

    You're welcome and thanks for adding rep points.

+ 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] Value Dependent Dynamic Range ComboBox in Userform
    By Dferrier in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-15-2016, 04:27 AM
  2. Match ComboBox with dynamic range, then add Textbox1 to dynamic range
    By Lasse Moe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2014, 01:26 AM
  3. activex combobox and dynamic named range
    By lcsw in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-22-2013, 05:30 PM
  4. [SOLVED] ComboBox with Dynamic range
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-13-2013, 01:28 AM
  5. ComboBox Dynamic Range
    By alrichar in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-14-2012, 10:55 AM
  6. Combobox Rowsource Dynamic Range
    By roy__lam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2012, 09:44 AM
  7. Populate a combobox in a userform with a dynamic range.
    By BigBas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2007, 01:12 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