+ Reply to Thread
Results 1 to 5 of 5

Worksheet_Change Event not firing

  1. #1
    Registered User
    Join Date
    02-11-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2013
    Posts
    98

    Worksheet_Change Event not firing

    Hey there - I am lost. I have a worksheet that has a dropdown list. Once I select something new from the dropdown list, a 'change' has occurred and should fire the code below. Unfortunately, when I invoke a change, I can't even get into my 'test' at the top of the code. I have the code written in the worksheet excel object and not a regular module (see photo). I have looked at the trust center settings and the Macros are set to 'Disable VBA macros with notification' and the Message Bar is set to 'Show the Message Bar in all applications when active content.....'.

    Screenshot 2024-01-12 111619.png

    I will also say that I simply tried opening the worksheet object and hitting F5 and I am getting 'Unexpected Error 35005'. Unfortunately, google hasn't helped me w/ that one either.

    Any ideas? Thanks for the help!

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    935

    Re: Worksheet_Change Event not firing

    Your event macro looks like it is in working condition.
    Check the state of the function Application.EnableEvents to see if it is True (in the Immediate pane (Ctrl+G if not visible) paste ?Application.EnableEvents and press Enter). If False paste Application.EnableEvents = True and press Enter then retry changes in the sheet.
    Last edited by rollis13; 01-12-2024 at 01:41 PM.
    Difficult is not to know but to share what you know (Han Fei Tzu reworked)

  3. #3
    Registered User
    Join Date
    02-11-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2013
    Posts
    98

    Re: Worksheet_Change Event not firing

    Quote Originally Posted by rollis13 View Post
    Your event macro looks like it is in working condition.
    Check the state of the function Application.EnableEvents to see if it is True (in the Immediate pane (Ctrl+G if not visible) paste ?Application.EnableEvents and press Enter). If False paste Application.EnableEvents = True and press Enter then retry changes in the sheet.
    I tried the ?Application.EnableEvents as you suggested and the result was True. Somehow, everything is now working. I have no idea how come.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,450

    Re: Worksheet_Change Event not firing

    This

    Please Login or Register  to view this content.
    is redundant.

    If Events are not enabled the WSCEh will not fire so you won't have the opportunity to enable it and display a MsgBox.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Valued Forum Contributor rollis13's Avatar
    Join Date
    01-26-2012
    Location
    Cordenons
    MS-Off Ver
    Excel 2016 32bit - Win 11
    Posts
    935

    Re: Worksheet_Change Event not firing

    Quote Originally Posted by dabrows View Post
    Somehow, everything is now working. I have no idea how come.
    The issue probably occurred when the status of the event was False. This could have happened if the macro crashed and ended before resetting the event state via code. Then, if the file is closed and reopened, the event state is automatically reset to True. So, there's no need to close/reopen, just use the Immediate pane as I suggested above.
    Last edited by rollis13; 01-12-2024 at 04:56 PM.

+ 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. Worksheet_Change not firing due to Application.EnableEvents = False
    By QLN in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-07-2022, 03:57 PM
  2. Worksheet Change Event Not Firing / Worksheet Calculate Repetitive Firing
    By huyza_0100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2019, 04:58 PM
  3. Worksheet_Change not firing when pasting to multiple cells.
    By bg819 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-17-2014, 11:41 AM
  4. [SOLVED] Userform multipage control - exit event not firing or event order
    By jane serky in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-14-2013, 10:23 AM
  5. How to prevent SelectionChange event firing before Change event?
    By franklyn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2012, 05:17 AM
  6. Worksheet_Change event not firing
    By beeawwb in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-02-2008, 08:38 PM
  7. BeforeClose event not firing?
    By bernmc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-06-2007, 03:54 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