+ Reply to Thread
Results 1 to 9 of 9

Combo Box loses visibility on selection

  1. #1
    Registered User
    Join Date
    12-28-2010
    Location
    London
    MS-Off Ver
    Excel 365
    Posts
    72

    Combo Box loses visibility on selection

    Hoping someone can help me to keep sight of the selection made in combobox cell F1
    Oddly, upon selection if you "go back in" and reselect, visibility is retained

    The combo is driven by helper cells using "search", "Count" and "Match", against a master full list, so that users can partially type or scroll to select the desired entry from the master list
    Linked cell populates next available cell in "returning list" on activation of button H1 (that also resets the entry)

    What I ideally want is for users to be able to select from list or by partially typing in, and clicking to commit to selection and that selection wording to be visible until the "add button" is clicked

    Appols if in the wrong area, but gut feeling is that my GotFocus routine is incomplete ???

    Sincere thanks as always
    Attached Files Attached Files
    Last edited by _MANNY_; 07-06-2019 at 04:26 AM.

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

    Re: Combo Box loses visibility on selection

    My knowledge of excel formula is very basic so I don't understand the formula you use to set up your searchable combobox. But in my opinion your searchable combobox is a bit inefficient & buggy.
    I have created a searchable combobox that can work faster (without using formula).
    You can try this sample workbook:



    If you’re interested in this approach, I can help you set this up to suit your need.

  3. #3
    Registered User
    Join Date
    12-28-2010
    Location
    London
    MS-Off Ver
    Excel 365
    Posts
    72

    Re: Combo Box loses visibility on selection

    Thanks Akuini - yours really is a lot slicker. I'm liking it, Meets all needs. Have had a quick look and not too sure "how" its working, but irrespective, it does so very well. many thanks

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

    Re: Combo Box loses visibility on selection

    You're welcome, just let me know if need help to set it up in your workbook.

  5. #5
    Registered User
    Join Date
    12-28-2010
    Location
    London
    MS-Off Ver
    Excel 365
    Posts
    72

    Re: Combo Box loses visibility on selection

    I think I may need some help - guided by your VB comment lines, ive been up all night simply trying to get your button working with my list. I failed miserably - unless I had the two together oddly (?????))
    I simply want your approach/ComboBox on my "Drugs list". You'll see the slight difference in our report structures is that my "Add" button adds to the next available line in the (excel) Table (by way of a linked cell to the Combo properties - not sure if your add routine can be tweaked for this, and that the clear button, deletes all Table rows bar the first
    Ill be tidying up the list itself (to make monthly updating a bit easier) and, although im now doubting even my basic skills lol, I think ill be OK populating the formulas within the summary table to. Really do appreciate this - many thanks

  6. #6
    Registered User
    Join Date
    12-28-2010
    Location
    London
    MS-Off Ver
    Excel 365
    Posts
    72

    Re: Combo Box loses visibility on selection

    I must say, I am so impressed with your solution. I have started and stopped working on this problem many times over the last couple of years.

  7. #7
    Registered User
    Join Date
    12-28-2010
    Location
    London
    MS-Off Ver
    Excel 365
    Posts
    72

    Re: Combo Box loses visibility on selection

    Looks like the list start reference was case sensitive - working a charm. Thanks again

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

    Re: Combo Box loses visibility on selection

    I got error “permission denied” when I tried to run my code in your workbook. So I created a new workbook & copy the sheet Part VIIIA&B to it (I didn’t copy the rest of the sheets).

    Note:
    1.To insert data in the next empty row in col A & B, I use Sub CopyStuff_1()
    2.The search pattern in the combobox is *some letter* some letter, so typing “fa cap” can find something like “Alfacalcidol 1microgram capsules - 30”
    3.Why do you need col Display? Isn’t it the same with col Drug?

    Here’s the workbook:
    Attached Files Attached Files

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

    Re: Combo Box loses visibility on selection

    Quote Originally Posted by _MANNY_ View Post
    Looks like the list start reference was case sensitive - working a charm. Thanks again
    Not sure what you mean by "the list start reference".
    But the search in the combobox is case insensitive.

+ 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] populate value in combo box based on another combo box selection
    By bala04msw in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-31-2018, 04:07 PM
  2. Poplulating a second combo box based on user selection in first combo box
    By lateniteNC1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-17-2017, 12:40 AM
  3. Replies: 19
    Last Post: 09-06-2014, 06:30 PM
  4. Replies: 8
    Last Post: 12-26-2013, 02:23 PM
  5. [SOLVED] Combo Box2 selections available based on Combo box 1 selection
    By wishn4fishn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-28-2013, 08:13 PM
  6. combo box input range based on the other combo box selection
    By hedayet in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-08-2013, 02:27 AM
  7. Excel crashes when Combo Box loses focus
    By ExcelEddie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-17-2006, 03:55 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