+ Reply to Thread
Results 1 to 4 of 4

Combobox userform enable events not working

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Combobox userform enable events not working

    Hi,

    i am using code for combobox.

    Please Login or Register  to view this content.
    when code goes to Me.CboBrutt.Value = "Brutto" it should skipp combobox event but this is starting once again,
    why Application.EnableEvents = False is not working?

    Best,
    Jacek

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Combobox userform enable events not working

    Enable Events doesn't work on userforms. Instead you should use a Boolean variable which you can set and check.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Combobox userform enable events not working

    thank you bakerman2!

    Best Wishes and have a nice day,
    Jacek

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Combobox userform enable events not working

    Thanks for rep+, jaryszek, much appreciared.

+ 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. Is it possible Enable one/few events, and disable rest of the events by VBA Excel?
    By hoalahpi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2016, 02:24 AM
  2. [SOLVED] Userform ComboBox Class Module not working
    By rodgersmg in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-24-2016, 03:23 AM
  3. UserForm ComboBox not working
    By Cremorneguy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2015, 09:15 PM
  4. Have CheckBox enable different list options in ComboBox in UserForm
    By joly_old_elf in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-26-2014, 03:20 AM
  5. Enable backspace key in combobox on Userform
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-06-2011, 05:35 PM
  6. Enable ComboBox - userform
    By erock24 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-29-2008, 02:17 PM
  7. combobox change event is running when enable events is false
    By tysop in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2006, 10:20 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