+ Reply to Thread
Results 1 to 13 of 13

How i can exit from compo box after select ?

  1. #1
    Registered User
    Join Date
    03-28-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    10

    How i can exit from compo box after select ?

    Hello,

    I am new in the forum and in the excel vba code

    I would like to ask if anyone knows how to exit from the compobox menu after we select something (after we click to the item that we want from the dropdown menu)

    Please Login or Register  to view this content.
    I found this code and it worked very good but now i want when i select something to close the dropdown menu without press any button or click to another cell.

    I add this to my code, its working when i select something but when i press a letter to find something from my list it crush the excel

    Private Sub TempCombo_Change()

    ActiveCell.Select

    End Sub


    Is anyone that can help me with this

    Thank you very much in advanced
    Last edited by omek07; 04-01-2016 at 06:12 PM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How i can exit from compo box after select ?

    Hi omek07

    Welcome to the Forum!!!

    Please wrap any Code you post in Code Tags...a Forum requirement.

    You can try this...
    Please Login or Register  to view this content.
    Get rid of this Code...it's most likely what's causing the crash...
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    03-28-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    10

    Re: How i can exit from compo box after select ?

    Thank you very much my friend
    Last edited by omek07; 04-01-2016 at 06:21 PM.

  4. #4
    Registered User
    Join Date
    03-28-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    10

    Re: How i can exit from compo box after select ?

    Quote Originally Posted by jaslake View Post
    Hi omek07

    Welcome to the Forum!!!

    Please wrap any Code you post in Code Tags...a Forum requirement.

    You can try this...
    Please Login or Register  to view this content.
    Get rid of this Code...it's most likely what's causing the crash...
    Please Login or Register  to view this content.
    Thank you very much my friend

    I have the same problem and with this command

    I dont understand why !!!

    i found that if i disable Match entry from the compobox properties i dont have crush but i need the autocomplete because my list is big


    oooooo i FORGOT TO mention that it gives me the crush when i am starting typing something. If i click something from the list is fine


    Here is my properties for the tempcombo

    TEMPCOMPO PROPERTIES.jpg
    Last edited by omek07; 04-01-2016 at 06:39 PM.

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How i can exit from compo box after select ?

    Hi omek07

    I'd guess you've not done this...

    Get rid of this Code...it's most likely what's causing the crash...

    Please Login or Register  to view this content.
    If you can't sort it out...

    Please attach a sample workbook the Structure of which is the same as your actual workbook.

    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.

    INCLUDE ANY CODE YOU'RE USING OR HAVE TRIED.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

  6. #6
    Registered User
    Join Date
    03-28-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    10

    Re: How i can exit from compo box after select ?

    Hello again my friend,

    Yes of course i replace it with the code that you gave me .


    Here is a sample from me worksheet
    Attached Files Attached Files

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How i can exit from compo box after select ?

    Hi omek07

    I'll look at it...not tonight...this weekend.

  8. #8
    Registered User
    Join Date
    03-28-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    10

    Re: How i can exit from compo box after select ?

    Thank you very much

    My lists is in the Equipment sheet. The A column is my Big list , the B column is the Descriptions , the C, D, E columns is for the Unused items (i used some formulas so i can have the Unused items and with this way the user cant select the same item again). the E column (unused2 list) is the Column that i use for the Data Validation and for the Tempcombo.

    My main Sheet is the Daily_Dispatch sheet . The Validation data and the Tempcombo is in the A column under of the Equip.

    You can open the tempcombo with double click

    if you select a list item with mouse click is fine but if you try to type something (lets say SC008) its gonna crush the Excel.

    If you erase this

    Private Sub TempCombo_Click()
    ActiveCell.Offset(0, 1).Activate
    End Sub

    You will not have the crush BUT if you select something from the drop down menu it highlightgs the next item from the list (which is a little bit confusing) but if after you select the item and press ENTER it gonna give you the correct ITEM.
    Last edited by omek07; 04-01-2016 at 09:53 PM.

  9. #9
    Registered User
    Join Date
    03-28-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    10

    Re: How i can exit from compo box after select ?

    Quote Originally Posted by jaslake View Post
    Hi omek07

    I'll look at it...not tonight...this weekend.

    Hello my friend

    Have you looked anything yet ???
    Its just a question i dont want to push you

    Thank you

  10. #10
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How i can exit from compo box after select ?

    Hi omek07

    Sorry...got tied up with Tax Returns this weekend and my deceased Sister's Estate today...been a bit busy. I'll try to look at this tomorrow.

  11. #11
    Registered User
    Join Date
    03-28-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    10

    Re: How i can exit from compo box after select ?

    It's ok my friend no problem . Whenever you have time .

    Thank you

  12. #12
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: How i can exit from compo box after select ?

    Hi omek07

    I've looked at it and am unable to sort it out...sorry.

  13. #13
    Registered User
    Join Date
    03-28-2016
    Location
    Canada
    MS-Off Ver
    2010
    Posts
    10

    Re: How i can exit from compo box after select ?

    Quote Originally Posted by jaslake View Post
    Hi omek07

    I've looked at it and am unable to sort it out...sorry.
    Thank you my friend

+ 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. Textbox exit event prevents to exit userform
    By smjjvh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2014, 06:08 AM
  2. Texbox exit event prevents userform exit
    By smjjvh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2014, 05:47 AM
  3. [SOLVED] Search in a compo box using the first 2 letters.
    By MariaPap in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-20-2014, 07:15 AM
  4. VBA Coding Style - Exit Points - What are good methods for coding Exit Points?
    By CHatmaker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-11-2013, 05:30 PM
  5. [SOLVED] Compare two folder files - whether they exit or not and if exit then copy to another foler
    By sthiru in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-10-2012, 12:08 AM
  6. [SOLVED] Select locked cells resets on exit
    By tichvra in forum Excel General
    Replies: 3
    Last Post: 06-21-2012, 01:07 PM
  7. Pop up on exit
    By suss-hmfc in forum Excel General
    Replies: 1
    Last Post: 01-10-2008, 08:09 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