+ Reply to Thread
Results 1 to 6 of 6

Enabling Events

  1. #1
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Enabling Events

    The code below is a simple event procedure that when the word "Hi" is typed ina specified range then that "target cell" changes automatically to the word "Works!" Unfortunately this doesn't always work, for example if i type a different word after the word "Hi", then the code doesn't execute in the next instance. Also, the code won't work when i open the workbook, to get it to work i need the events to be enabled again via a different macro.
    Please Login or Register  to view this content.
    All help on this would be greatly appreciated

  2. #2
    Valued Forum Contributor
    Join Date
    05-14-2012
    Location
    Unknown
    MS-Off Ver
    Unseen
    Posts
    429

    Re: Enabling Events

    You have your True and False the wrong way round. False at the beginning, True at the end.

  3. #3
    Forum Contributor kalbasiatka's Avatar
    Join Date
    02-27-2016
    Location
    Brest, Belarus
    MS-Off Ver
    2021
    Posts
    224

    Re: Enabling Events

    for what you need to disable events?
    Please Login or Register  to view this content.
    To do it for me and help me it is 2 different things!
    Sorry for my english, blame Google translator

  4. #4
    Valued Forum Contributor
    Join Date
    05-14-2012
    Location
    Unknown
    MS-Off Ver
    Unseen
    Posts
    429

    Re: Enabling Events

    for what you need to disable events?
    Because he's making a change to a cell value within a worksheet change event handler. That will cause the event handler to fire again. No big deal here but could be a bad habit to get into.

  5. #5
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Brooklyn, NY
    MS-Off Ver
    Office 365
    Posts
    1,172

    Re: Enabling Events

    Quote Originally Posted by InvisibleMan View Post
    You have your True and False the wrong way round. False at the beginning, True at the end.
    I can't believe i missed that one!
    Thanks for catching that.

  6. #6
    Valued Forum Contributor
    Join Date
    05-14-2012
    Location
    Unknown
    MS-Off Ver
    Unseen
    Posts
    429

    Re: Enabling Events

    You're welcome. Thanks for the rep.

+ 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. enabling macros
    By notgrumpy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-18-2015, 11:52 PM
  2. Need help with enabling events
    By steven_b46 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-03-2014, 02:28 PM
  3. Enabling Macros
    By ggordonstewart in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-12-2010, 12:02 AM
  4. [SOLVED] Enabling Events
    By Robin Clay in forum Excel General
    Replies: 9
    Last Post: 07-12-2006, 10:10 AM
  5. do events? background events
    By cereldine in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2006, 08:10 AM
  6. [SOLVED] enabling chart events for an embedded chart
    By Wazooli in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-26-2006, 09:20 AM
  7. [SOLVED] Enabling Macros
    By Old Music Lover in forum Excel General
    Replies: 2
    Last Post: 07-22-2005, 10: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