+ Reply to Thread
Results 1 to 7 of 7

Prevent Multiple Instances of TempCombo

  1. #1
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Prevent Multiple Instances of TempCombo

    I borrowed the following code from ExtendOffice. It allows me to have an autocomplete dropdown instead of validation with in cell dropdown. I noticed when I have worksheet protection turned on that when I select a cell which displays a dropdown, it causes there to appear 2 dropdowns. In order to correct this, I toggle protection on and off, but since this procedure runs with selection change, it makes things slow and clunky. Any idea how to prevent 2 dropdowns from displaying?

    In order for this to run, you will need to have a combobox with a name set to TempCombo, and a few cells with validation set to in cell dropdown.

    Here's the offending procedure.

    Please Login or Register  to view this content.
    Last edited by tlafferty; 03-29-2019 at 09:48 AM. Reason: Typo - I'm a bit of a perfectionist. (any instead of in)
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  2. #2
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    Office 365
    Posts
    1,004

    Re: Prevent Multiple Instances of TempCombo

    In my opinion, using combination of data validation + combobox is a bit complicated method. Why not just using a combobox.
    I suggest using a combobox that can appear and hide automatically.
    I created a combobox that has 2 special behavior:
    1. The combobox can appear and hide automatically when you select a cell in a certain
    range.
    2. You can type a keyword in the combobox and the results will be narrowed down as
    you type.

    So you only need 1 combobox for all cells that need to be filled.
    Here's a screenshot:

    combobox next to cell, search as type.jpg

    Let me know if you're interested in this approach.

  3. #3
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Prevent Multiple Instances of TempCombo

    Hi - thanks for taking a look at this for me!

    Presently, I'm using several kinds of validation in the worksheet, and some cells are not validated. Those that are validated may or may not require dropdown, and I'm using the dropdown to pick from different named tables in the book. When I created the book, I only created one drop down which is set to appear if the appropriate kind of cell is selected. I did not create more than 1 dropdown, I use the same dropdown and fill its drop list from more than one location in the book. The issue is that drop down will appear anchored to more than one cell if:
    A) a cell is selected that requires a dropdown

    and

    B) if and only if the worksheet is protected when the selection occurs.

  4. #4
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Prevent Multiple Instances of TempCombo

    Follow on to previous as a clarification: The combo box already supports auto complete and narrowing of the list as the user types. It also auto appears and auto hides once the user selects a different cell. The only issues are:

    1) more than one instance appears when the worksheet is protected
    2) the procedure I'm using requires to turn on and off the worksheet protection to prevent more than one combo appearing at a time. It's effective but a bit slow (slight lag in performance).

  5. #5
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Prevent Multiple Instances of TempCombo

    Any ideas? Bump?

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Prevent Multiple Instances of TempCombo

    Administrative Note:

    We would love to help you with your query; however, it has been brought to our attention this same query has been posted on one or more other forums and you have not provided the required cross-post link(s).

    Please read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    HTH
    Regards, Jeff

  7. #7
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Prevent Multiple Instances of TempCombo

    Hi Jeff -
    Sorry for the violation(s) due to cross posting. Here's the cross posted thread on Mr. Excel https://www.mrexcel.com/forum/excel-...tempcombo.html

+ 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. Replies: 4
    Last Post: 04-14-2018, 09:54 AM
  2. Replies: 8
    Last Post: 09-14-2013, 12:53 PM
  3. [SOLVED] Complex VLOOKUP, multiple instances vertical, return subsequent instances horizontally
    By Miles_2804 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-12-2013, 11:54 AM
  4. Inputting data from multiple instances from multiple users into a main Excel Workbook
    By smooth_beaker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2013, 12:18 AM
  5. Prevent Multiple Instances?
    By js0873 in forum Excel General
    Replies: 1
    Last Post: 06-07-2010, 06:16 PM
  6. Prevent multiple instances of Excel from starting
    By Robert Mulroney in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-21-2006, 08:10 AM
  7. [SOLVED] Prevent Excel closing all workbook instances when clicking on "X"
    By Deeptech-NM in forum Excel General
    Replies: 8
    Last Post: 07-04-2005, 09:05 AM

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