+ Reply to Thread
Results 1 to 2 of 2

Event Driven Macros stop running after running a routine macro

  1. #1
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Event Driven Macros stop running after running a routine macro

    I have a button set up with a macro to clear all the input cells (a named range) on the sheet.

    After I run this my event driven macros (specifically Worksheet_Change) doesn't run.

    Has anyone run into this before?

    Specific example, I run this
    Please Login or Register  to view this content.
    and this stops working
    Please Login or Register  to view this content.
    Change event works fine until I run the first macro.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: Event Driven Macros stop running after running a routine macro

    Hi,

    The "Application.EnableEvents = False" must be paired with "Application.EnableEvents = True", otherwise after the very first time the sub is run (which means EnableEvents = False), Excel will continue in this state, make it not responding to any event.

    I suggest the sub will be like this :

    Please Login or Register  to view this content.
    You may need to run this sub first, in case current EnableEvents state is False :
    Please Login or Register  to view this content.
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

+ 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] Hiding the file when running macros and after running macros
    By thilag in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-10-2016, 07:15 AM
  2. Macro to populate Event-Driven macros to certain sheets
    By dicenn in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-27-2014, 10:07 AM
  3. Replies: 19
    Last Post: 05-31-2011, 09:00 AM
  4. Macro to stop running at last row
    By staples in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-10-2009, 01:52 PM
  5. Web queries, Macros, Stop auto-running, Userforms
    By Flashart in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-08-2008, 03:51 PM
  6. Macro won't stop running!
    By wizard007 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-05-2007, 06:09 AM
  7. Stop Macros from Running When Workbook Opened via Automation
    By Google Boy of Company C in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-15-2005, 12:05 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