+ Reply to Thread
Results 1 to 6 of 6

Event Trigger Not Working

  1. #1
    Registered User
    Join Date
    10-12-2018
    Location
    Houston, TX
    MS-Off Ver
    Office365 2016
    Posts
    3

    Event Trigger Not Working

    I am trying to call a Sub based on the value of a drop down list. I have created all of the individual subs for each of the different values in the drop down list and saved them in the Modules. I have run each of the Module subs and they work correctly. I created the following event trigger sub and placed it in Sheet1 under objects. When I change the values on the drop down list nothing happens. Any ideas?

    Please Login or Register  to view this content.
    Last edited by AliGW; 10-15-2018 at 10:05 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,565

    Re: Event Trigger Not Working

    Welcome to the foums!

    Please take a look at the second of our forum rules regarding code tags, which you will need to add yourself in future. I will do it for you this time. Thanks!
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,980

    Re: Event Trigger Not Working

    That is not a valid event, unless you have declared your own event?
    Everyone who confuses correlation and causation ends up dead.

  4. #4
    Registered User
    Join Date
    10-12-2018
    Location
    Houston, TX
    MS-Off Ver
    Office365 2016
    Posts
    3

    Re: Event Trigger Not Working

    I'm new to this. Please help me understand what you mean by this is not a valid event.

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,980

    Re: Event Trigger Not Working

    I meant that worksheet events have very specific names and signatures. For a worksheet_change event, which I suspect this needs to be, you have to call it Worksheet_Change:

    Please Login or Register  to view this content.
    or it will not respond to changes on the worksheet.

  6. #6
    Registered User
    Join Date
    10-12-2018
    Location
    Houston, TX
    MS-Off Ver
    Office365 2016
    Posts
    3

    Re: Event Trigger Not Working

    When I read the code from the internet I just assumed that was a sub name that I could call whatever I want. That fixed it. Thank you for the help!

+ 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. How to trigger mouse_move event when working on sheet
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2018, 08:10 AM
  2. trigger an event if the cel value changes.
    By yoursamrit2000 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-04-2015, 06:38 PM
  3. [SOLVED] GotFocus event won't trigger
    By williams485 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-17-2014, 12:00 PM
  4. [SOLVED] VBA to trigger event change
    By jrholden in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-26-2014, 11:34 AM
  5. Trigger event for bombobox on userform not working
    By newbi004 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-15-2013, 07:18 AM
  6. Macro Trigger/Event
    By 31RHCP in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-29-2010, 06:18 PM
  7. Event Trigger
    By lobo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-16-2005, 04:35 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