+ Reply to Thread
Results 1 to 5 of 5

worksheet_change not working

  1. #1
    Forum Contributor
    Join Date
    06-25-2007
    Posts
    166

    worksheet_change not working

    Hi all,

    My worksheet_change code is not working at all, and I can't figure out why. I've tested even the most basic worksheet_change code, and it's still not firing:

    Please Login or Register  to view this content.
    Am I missing something blatant in the code here, or is there an excel setting that's not configured correctly? All of my other macros are working fine.

    Thanks in advance,
    Jeff

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: worksheet_change not working

    I copied your code verbatim and it works fine for me. What are you expecting? It fires whenever you change a cell in the sheet, not when you change from one sheet to another.
    Last edited by davegugg; 04-08-2010 at 11:46 AM. Reason: Spelling error
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  3. #3
    Forum Contributor
    Join Date
    06-25-2007
    Posts
    166

    Re: worksheet_change not working

    Yes, that's exactly what I'm expecting, and strangely it's not happening for me. When I change any cell in this one sheet, nothing happens. No message box. Thanks for trying - let me know if you have any more suggestions...

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,366

    Re: worksheet_change not working

    How are you changing the cell? Manually or as the result of a formula? (the former will work, the latter won't).
    You can also open the VBEditor (Alt+f11) then the Immediate Window (Ctrl+G) and type in:
    Please Login or Register  to view this content.
    and press enter.
    Everyone who confuses correlation and causation ends up dead.

  5. #5
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: worksheet_change not working

    Are macros enabled?
    Is the code in the Sheet module?
    Is the code in the correct Sheet module?

    Just asking ....

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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