+ Reply to Thread
Results 1 to 5 of 5

Worksheet change event not responding to cell deletion

  1. #1
    Forum Contributor
    Join Date
    09-30-2008
    Location
    Eau Claire, WI
    Posts
    184

    Worksheet change event not responding to cell deletion

    I have a code (thanks royUK and Leath!) where column K is not responding to a value being deleted out of column J. I've highlighted the portion of the code dealing with this. Deletion should trigger the worksheet_change event to clear out column K as it's supposed to. Any ideas on how to get deletion to take effect? Thanks!

    Please Login or Register  to view this content.
    I've attached the workbook as well.
    Last edited by jman0707; 11-14-2008 at 02:11 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    I see you have Rng 3 set but not used in the Intersect so guess that is the problem
    Please Login or Register  to view this content.
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Contributor
    Join Date
    09-30-2008
    Location
    Eau Claire, WI
    Posts
    184
    So do I need to change this line of code:

    Please Login or Register  to view this content.
    to this?

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    No

    This line is the trigger for Range("J17:J116")
    Please Login or Register  to view this content.
    If you want to trigger for two different ranges you would do something like
    the below. This triggers a message for example if you select a cell in Col A or C
    Please Login or Register  to view this content.
    VBA Noob

  5. #5
    Forum Contributor
    Join Date
    09-30-2008
    Location
    Eau Claire, WI
    Posts
    184
    OK, I changed it to the following, and now when I change the value in E it does clear out the cell, BUT it still doesn't work when I delete the value in J (doesn't clear K like it should). And seeing how intersect(target, column J) was already a trigger, it should already work but I need to find out why it's not. Any ideas? Thanks VBNoob!

    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)

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