+ Reply to Thread
Results 1 to 5 of 5

Worksheet_Change Event does not execute upon change of cell

  1. #1
    Registered User
    Join Date
    09-10-2013
    Location
    Arizona, USA
    MS-Off Ver
    Excel 2007
    Posts
    12

    Worksheet_Change Event does not execute upon change of cell

    Good Morning, Tsjallie

    Sorry, the misunderstanding was mine. I didn't get iso.

    Here is the code I have now.
    Please Login or Register  to view this content.
    I may have two problems.
    1. Of course, the code does not run.
    2. There are many cells in this worksheet that change. How can I make sure only cell E9 runs the code?

    Thanks for your generous time and assistance.

    KarlaM

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Worksheet_Change Event does not execute upon change of cell

    This code is odd--why would you assign five different values to the same cell? Only that last one matters.

    What module is this code in? Is it the same sheet that you want to detect changes in? If it is not, that's your problem. If it is, then put in a breakpoint or a MsgBox call to see if it is entering the code. Better yet, attach your file here.

    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Worksheet_Change Event does not execute upon change of cell

    nevermind. already answered.

  4. #4
    Registered User
    Join Date
    09-10-2013
    Location
    Arizona, USA
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Worksheet_Change Event does not execute upon change of cell

    Hi Jeff,

    I added the two lines as you suggested and changed cell E9. Nothing happened. I inadvertently changed the data in a different cell, and the code tried to run. The error message was "Compile Error: Sub or Function not defined" and VBA highlighted: Worksheet("PPW").Range("E9") = A

    I created the sub from the PPW worksheet object.

    My attempt to upload the workbook failed. It is 2200KB, maybe too big? What is the size limit for uploads? I can try to build a smaller file over the weekend.

    Thanks!
    Karla

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Worksheet_Change Event does not execute upon change of cell

    I didn't catch this the first time around. The correct code is:
    Please Login or Register  to view this content.
    You might try zipping the file and see if that's under the limit. Limits can be found in the "?" link when you click on the paper clip to attach a file:
    Please Login or Register  to view this content.

+ 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 Event (If User Mouse Clicks Out of the Active Cell)
    By sadclown in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-14-2012, 03:50 PM
  2. change the (Worksheet_Change) event for a module (Sub).
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-07-2012, 01:37 PM
  3. Run time error 13 when deleting more than one cell with Worksheet_Change event macro
    By som3on3_10 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-22-2010, 12:19 PM
  4. Execute code from the Worksheet_Change event
    By aldredd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-17-2008, 05:52 AM
  5. [SOLVED] Execute on Cell Change - Problem
    By Marty in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2005, 03:06 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