Can you trap the Delete event?

D

Dreiding

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
 
J

Jim Thomlinson

Are you talking about truely deleting the rows or just clearing the contents
of a row? There is a big difference.
 
D

Dreiding

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.
 
K

Keith74

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top