How to Capture right click Delete/Insert on Excel
If you want to trap the right-click, then use this event macro in the
worksheet code area:
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As
Boolean)
MsgBox ("A right-click is better than a wrong click!")
End Sub
If you then wanted to trap a resulting column/row insert/delete, then a
different event macro could be used.
--
Gary''s Student - gsnu200830
"Gummadi" wrote:
Hi,
I wanted to know how do we capture the right click Delete/Insert event in
Excel.
This is not same as where we select a row or column and then right click and
select Insert/Delete. I am able to capture that event.
I wanted to know about the event when we right click on a cell, and the
select Delete/Insert and then Select option "Entire Row" or "Entire Column".
This is what i want to capture.
Can someone please help me with this?
Thanks,
Gummadi
|