Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel addin from C# - Trap excel events
Hi,
Am developing an addin for Excel using C#. When i try to trap the SheetBeforeRightClick event(any event infact) of excel am getting "No such interface supported" error. Here is the code public void OnStartupComplete(ref System.Array custom) { .................................. Excel.Application objExlApp = (Excel.Application)applicationObject; objExlApp .SheetBeforeRightClick += new AppEvents_SheetBeforeRightClickEventHandler(this.E xlRightClick_EvtHandler); ................................. } public void ExlRightClick_EvtHandler(object Sh,Excel.Range Target,ref bool Cancel) { MessageBox.Show("Inside right click event handler"); } Though it compiles, am getting "No such interface supported" error during the runtime at the statement objExlApp .SheetBeforeRightClick += new AppEvents_SheetBeforeRightClickEventHandler(this.E xlRightClick_EvtHandler); .. Please help. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel addin from C# - Trap excel events
Hi Karthikeyan,
Am developing an addin for Excel using C#. When i try to trap the SheetBeforeRightClick event(any event infact) of excel am getting "No such interface supported" error. You're more likely to get a helpful response if you post your question in the public.vsnet.vstools.office newsgroup. Regards Stephen Bullen Microsoft MVP - Excel Professional Excel Development The most advanced Excel VBA book available www.oaltd.co.uk/ProExcelDev |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to trap KeyDown Events For Worksheets ? | Excel Programming | |||
Temporary storage, Addin events | Excel Programming | |||
Remove Excel AddIn from AddIn List !! Help | Excel Programming | |||
Trap Excel events from VB | Excel Programming |