Discussion Enable excel ribbon on keypress

  • Thursday, April 12, 2012 7:05 AM
     
     

    I have an excelribbon.On ribbon load,I am registering the following event:
    Microsoft.Office.Interop.Excel.Application.SheetBeforeDoubleClick += new Microsoft.Office.Interop.Excel.AppEvents_SheetBeforeDoubleClickEventHandler(Workbook_SheetBeforeDoubleClick);


    In Workbook_SheetBeforeDoubleClick() I am disabling the ribbon buttons.
    Now the problem I am facing is that,the other excel inbuilt ribbons are enabled on clicking the ESC key,but my ribbon remains disabled.

    How can I enable it on ESC key press?

All Replies

  • Tuesday, April 17, 2012 9:08 AM
     
     

    I have an excelribbon.On ribbon load,I am registering the following event:
    Microsoft.Office.Interop.Excel.Application.SheetBeforeDoubleClick += new Microsoft.Office.Interop.Excel.AppEvents_SheetBeforeDoubleClickEventHandler(Workbook_SheetBeforeDoubleClick);


    In Workbook_SheetBeforeDoubleClick() I am disabling the ribbon buttons.
    Now the problem I am facing is that,the other excel inbuilt ribbons are enabled on clicking the ESC key,but my ribbon remains disabled.

    How can I enable it on ESC key press?