+ Reply to Thread
Results 1 to 2 of 2

Reloading and limiting comboboxes in UserForm

  1. #1
    Registered User
    Join Date
    02-20-2020
    Location
    Denmark
    MS-Off Ver
    O365
    Posts
    1

    Reloading and limiting comboboxes in UserForm

    Hi guys,

    First of all thank you for anyone who takes their time to read this, and please note that I am just starting in the world of VBA. So I may not understand everything the first time around.
    (Bear with me)

    I currently have two comboboxes (Dropdown), when I choose something in No. 1 it will then eliminate something in combobox 2.
    I have this nailed, however if someone chooses something in 1 that they didn't mean to, then the option in combobox2 is gone forever!

    What would the best approach be to prevent this? Reloading the initialization upon change, having a reset button or maybe a third option I haven't thought of?

    Currently I have tried reloading the initialization.

    It is my understand that by making the initialization a public sub I can call it anywhere, meaning I try to reload it if anything changes in the combobox.
    However I am struggling with executing this. As far as I can tell the if not works fine, but when I reload the initialization it creates duplicates… So something is off, or can you not define a specific piece of text that you don't want to replace? Or do I need to go by List like when removing item (How?)

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Reloading and limiting comboboxes in UserForm

    1. Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.


    2.

    Please Login or Register  to view this content.
    3.
    Please Login or Register  to view this content.
    Last edited by mehmetcik; 02-20-2020 at 10:37 AM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

+ 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] Populating userform textboxes basis of results from 2 userform comboboxes
    By rlh in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-11-2017, 10:26 AM
  2. [SOLVED] Limiting the Amount of Checkboxes in Userform
    By Rustyroof in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-16-2015, 09:30 AM
  3. [SOLVED] Limiting height of userform
    By antcha in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-17-2015, 08:23 PM
  4. [SOLVED] Userform choice generates another Userform with various Comboboxes
    By bobby.bobby in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-04-2013, 04:58 AM
  5. Userform ComboBoxes
    By Toonies in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-21-2011, 01:52 AM
  6. How to use ComboBoxes in UserForm
    By franciz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2007, 09:29 AM
  7. [SOLVED] saving and reloading the contents of a userform
    By bennyob in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-07-2005, 11:20 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