+ Reply to Thread
Results 1 to 16 of 16

COMBO BOX related query.

  1. #1
    Forum Contributor
    Join Date
    03-06-2020
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    113

    COMBO BOX related query.

    Is there any command by which we can close the dropdown list.

    combobox.dropdown shows the list . I want a command to close the list.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: COMBO BOX related query.

    Once a Combo Box loses it's focus the list is not shown.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Contributor
    Join Date
    03-06-2020
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    113

    Re: COMBO BOX related query.

    How do i remove focus from combobox . My combobox is hidden and its dropdown is linked to a SHAPE . If i click on the shape dropdown list appears but when i click it again it doesnt disappear.

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: COMBO BOX related query.

    I suggest you attach your anonimized file,

  5. #5
    Forum Contributor
    Join Date
    03-06-2020
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    113

    Re: COMBO BOX related query.

    Basically what i want to do is i want to apply filter in col A and i only want to display filter options not sorting options likes a to z , z to a . So i have used a shape and combobox , when i click shape combobox drops i want it to close like more filter if i click on it again .

    Any other suggestions are welcomed.
    Attached Files Attached Files

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: COMBO BOX related query.

    When I click the arrow I can select a value then the combobox closes
    I click it again it shows the list if i click elseweher it coses, what is it you're asking?
    You want the autofilter without the extra stuff?

  7. #7
    Forum Contributor
    Join Date
    03-06-2020
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    113

    Re: COMBO BOX related query.

    Is there a way to modify inbuilt autofilter function? TO remove the extra stuff , increase font size and show only check boxes? What i meant was if i click shape (arrow) dropdown list appears but without selecting a option if i click it again i want list to disappear (same way as it works in autofilter).

  8. #8
    Forum Contributor
    Join Date
    03-06-2020
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    113

    Re: COMBO BOX related query.

    Im using excel 2007 it doesnt close if i click elsewhere .

  9. #9
    Forum Contributor
    Join Date
    03-06-2020
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    113

    Re: COMBO BOX related query.

    Attachment 666493 i switch my focus to D6 still it wont close

  10. #10
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: COMBO BOX related query.

    I noticed that. I think the approach should be an entirely different one.
    I also looked around (Google and more) and saw that unlike the context menus for the cells in a worksheet there is no way of changing the context menus in an AutoFilter.
    The things is what do you want to do? what is the purpose? I don't want to assume what you want and go up the wrong way.
    Knowing more about what you want will give me the hint which way to take it from there

  11. #11
    Forum Contributor
    Join Date
    03-06-2020
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    113

    Re: COMBO BOX related query.

    Nothing specific just want to make the FONT bigger and dont want user to sort ( I can turn off sorting using vba though). Actually I dont want that unnecessary upper part of the autofilter menu which i wont be using anyways.

  12. #12
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: COMBO BOX related query.

    Okay, will put something simple together, got an idea, but it's past midnight here
    Hope to find the time sometime during the day

  13. #13
    Forum Contributor
    Join Date
    03-06-2020
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    113

    Re: COMBO BOX related query.

    Thank you SIR

  14. #14
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: COMBO BOX related query.

    This is what I came up with
    I did not add any comments just the code and my idea
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    03-06-2020
    Location
    INDIA
    MS-Off Ver
    2007
    Posts
    113

    Re: COMBO BOX related query.

    Works fine but coding is complicated for me as I am newbee .

  16. #16
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,900

    Re: COMBO BOX related query.

    Well, now is your chance to learn.
    VBA is not that difficult, it's common logic and loads of imagination
    Corrected ti a little now you can add new values in column A and it updates automatically
    Attached Files Attached Files

+ 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. Query returns multiple lines related to same record
    By FernTurpin in forum Excel General
    Replies: 1
    Last Post: 05-02-2019, 03:36 PM
  2. Query Related To enable edit but deceble delete
    By Soumyadarshi in forum Office 365
    Replies: 1
    Last Post: 01-17-2019, 03:10 PM
  3. Excel query related to Bold function in formatting
    By vjharry in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-18-2013, 08:22 AM
  4. Can query results be moved to one row for related fields?
    By jgomez in forum Access Tables & Databases
    Replies: 1
    Last Post: 11-01-2012, 10:28 AM
  5. Query related to SUM IF function
    By prsahu in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-23-2008, 02:39 AM
  6. Auto-Filling Related Combo Box Entries
    By merritts in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2006, 02:43 PM
  7. combo box query
    By Nigel in forum Excel General
    Replies: 0
    Last Post: 05-05-2005, 09:06 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