Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Eric
 
Posts: n/a
Default How do I 'catch' a 'delete cells' event

I am using Office 2000 and am using the worksheet_chage event to manipulate
a few things in the sheet. The 'Change' event doesn't catch when a user
deletes a range of cells. Is it possible to catch the deletion of a range
of cells, or a row or a column?

Thanks in advance!!


  #2   Report Post  
Bob Umlas, Excel MVP
 
Posts: n/a
Default

You can set up a keypress trap in the open event of the workbook:
Application.Onkey "{del}","RunMyDeleteProcedure"

at that procedure you can still clear the cells or whatever, and know that
they pressed that key.
Be sure to turn off the running of your procedure when the workbook is
closed (or deactivated, maybe):
Application.Onkey "{del}"

Bob Umlas
Excel MVP

"Eric" wrote:

I am using Office 2000 and am using the worksheet_chage event to manipulate
a few things in the sheet. The 'Change' event doesn't catch when a user
deletes a range of cells. Is it possible to catch the deletion of a range
of cells, or a row or a column?

Thanks in advance!!



  #3   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Eric,

IIRC, Excel XP handles this properly, and XL2000 and earlier versions don't.
What version do you have, and what is the code that you are running?

HTH,
Bernie
MS Excel MVP

"Eric" wrote in message
...
I am using Office 2000 and am using the worksheet_chage event to

manipulate
a few things in the sheet. The 'Change' event doesn't catch when a user
deletes a range of cells. Is it possible to catch the deletion of a range
of cells, or a row or a column?

Thanks in advance!!




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete shaded cells Patience Excel Discussion (Misc queries) 1 February 2nd 05 04:43 PM
In a column of text data, how do I delete random cells that have . Minivann Excel Discussion (Misc queries) 2 January 26th 05 09:07 PM
Locate and delete specific cells David Smith Excel Discussion (Misc queries) 1 January 19th 05 04:45 PM
Delete contents of unprotected cells in workbook BD7447 Excel Worksheet Functions 1 November 6th 04 05:41 PM
How do you delete one cell from a range of protected cells Cgbilliar Excel Worksheet Functions 2 November 3rd 04 10:42 PM


All times are GMT +1. The time now is 05:46 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"