PC Review


Reply
Thread Tools Rate Thread

Can you trap the Delete event?

 
 
Dreiding
Guest
Posts: n/a
 
      15th Apr 2008
If I could trap the delete function (Entire Row), I would be able to control
which Rows the user have delete permissions on.
Does Excel have the capability to trap the Delete event?

Thanks,
- Pat
 
Reply With Quote
 
 
 
 
Keith74
Guest
Posts: n/a
 
      15th Apr 2008
have a look at

http://www.dailydoseofexcel.com/arch...-deleted-rows/

only other way i can think of might be to use the change event

hth

Keith

 
Reply With Quote
 
Jim Thomlinson
Guest
Posts: n/a
 
      15th Apr 2008
Are you talking about truely deleting the rows or just clearing the contents
of a row? There is a big difference.
--
HTH...

Jim Thomlinson


"Dreiding" wrote:

> If I could trap the delete function (Entire Row), I would be able to control
> which Rows the user have delete permissions on.
> Does Excel have the capability to trap the Delete event?
>
> Thanks,
> - Pat

 
Reply With Quote
 
Dreiding
Guest
Posts: n/a
 
      15th Apr 2008
Yes, I'm concerned with physical row deletion, not cell clearing.
The link Keith74 shows me a way.
However it doesn't cover all the methods of row deletion.
I can still right click on a cell, select Delete..., then EntireRow without
the event being triggered.

I have not figured out how to get the ID for this event.

"Jim Thomlinson" wrote:

> Are you talking about truely deleting the rows or just clearing the contents
> of a row? There is a big difference.
> --
> HTH...
>
> Jim Thomlinson
>
>
> "Dreiding" wrote:
>
> > If I could trap the delete function (Entire Row), I would be able to control
> > which Rows the user have delete permissions on.
> > Does Excel have the capability to trap the Delete event?
> >
> > Thanks,
> > - Pat

 
Reply With Quote
 
Keith74
Guest
Posts: n/a
 
      16th Apr 2008
Have a look at the comment posted by Brad Yundt on the link. That
looks like it does what you want plus it traps the event you describe.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Event ID trap Aaron Microsoft VC .NET 0 1st Apr 2008 09:46 PM
Re: How to trap a Delete Event in a Data Grid ClayB [Syncfusion] Microsoft Dot NET Framework Forms 0 15th May 2005 02:03 PM
How to trap delete row event and hide column event? Alan Microsoft Excel Programming 3 26th Apr 2005 04:25 PM
COM+ event trap james Microsoft VB .NET 0 29th May 2004 11:36 AM
Re: How to trap a key event in vb.net Armin Zingler Microsoft VB .NET 0 24th Nov 2003 05:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:35 AM.