XL2000: No Trappable Events for Dialog Sheets and Macro Sheets (213715)



The information in this article applies to:

  • Microsoft Excel 2000

This article was previously published under Q213715

SYMPTOMS

Microsoft Excel 2000 supports many more event handlers than versions of Excel earlier than Excel 97. These event handlers can be used with the Application, Worksheet, Chart Sheet, and Workbook objects, but Excel 2000 does not support the trapping of events on dialog sheets or macro sheets.

CAUSE

For reasons of backward-compatibility, you can insert dialog sheets and macro sheets into your Excel 2000 workbook, but there are no sheet-level events for these two types of sheets.

RESOLUTION

You may be able to trap some events that occur on either dialog sheets or macro sheets, but only for the workbook object. The following table lists all of the workbook-level events and whether or not the event is triggered for dialog sheets and macro sheets:
                          Triggered for      Triggered for
   Event                  dialog sheet       macro sheet
   -------------------------------------------------------
   
   Activate                   yes               yes
   AddinInstall               no                no
   AddinUninstall             no                no
   BeforeClose                yes               yes
   BeforePrint                yes               no
   BeforeSave                 yes               yes
   Deactivate                 yes               yes
   NewSheet                   yes               yes
   Open                       yes               yes
   SheetActivate              yes               no
   SheetBeforeDoubleClick     no                no
   SheetBeforeRightClick      no                no
   SheetCalculate             no                no
   SheetChange                no                no
   SheetDeactivate            yes               no
   SheetSelectionChange       no                no
   WindowActivate             yes               yes
   WindowDeactivate           yes               yes
   WindowResize               yes               yes
				

REFERENCES

For more information about trapping events, click Microsoft Help on the Help menu, type dropbuttonstyle property in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

Modification Type:MinorLast Reviewed:10/11/2006
Keywords:kbdtacode kbprb kbProgramming KB213715