活頁簿和工作表的應用程式事件 XL97: 摘要

文章翻譯 文章翻譯
文章編號: 161761 - 檢視此文章適用的產品。
本文已封存。本文係以「現狀」提供且不會再更新。
本文章的有 Microsoft Excel 2002] 版本請參閱 291294
本文章的有 Microsoft Excel 2000] 版本請參閱 213220
全部展開 | 全部摺疊

在此頁中

結論

本文包含在舊版本的 Microsoft Excel 應用程式的活頁簿和工作表事件與每個相對應的指令用 Visual Basic 的摘要。

其他相關資訊

活頁簿事件

                    Previous version
 Event name         equivalent         Description of when event fires
 -----------------  -----------------  --------------------------------

 Activate           Auto_Activate      When the active workbook changes
                                       from another workbook to this
                                       workbook.

 Deactivate         Auto_Deactivate    When the active workbook changes
                                       from this workbook to another
                                       workbook.

 Open               Auto_Open          When the workbook opens.

 BeforeClose        Auto_Close         Before the workbook closes.

 AddInInstall       Auto_Add           When the user Installs the Add-In
                                       via the Add-In manager.

 AddInUninstall     Auto_Remove        When the User Uninstalls the Add-In
                                       via the Add-In manager.

 WindowResize       N/A                After a window of the Workbook has
                                       been opened, resized, maximized, or
                                       minimized.

 WindowActivate     OnWindow           Every time the focus comes to a
                                       Window belonging to the Workbook.

 WindowDeactivate   OnWindow           Every time the focus leaves this
                                       particular window of the Workbook.

 BeforeSave         OnSave             Before a workbook saves.

 BeforePrint        N/A                Before a workbook prints.

 NewSheet           N/A                After a new sheet is created.

 SheetActivate      OnSheetActivate    Every time a sheet is activated in
                                       the Workbook.

 SheetDeactivate    OnSheetDeactivate  After a sheet is deactivated in the
                                       Workbook.

 SheetCalculate     OnCalculate        After any recalculation in the
                                       Workbook.

 SheetBefore
 DoubleClick        OnDoubleClick      When a worksheet cell is double-
                                       clicked.

 SheetSelection
 Change             N/A                When there's any change in cell
                                       selection on a particular sheet.

 SheetBefore
 RightClick         N/A                When a worksheet cell is right-
                                       clicked.

 SheetChange        OnEntry            When a user changes the formula
                                       of a cell by typing, copy or paste,
                                       drag or drop, or undo. 
 
 SetLinkOnData      OnData             When a DDE link is updated.

				

工作表事件

                    Previous version
 Event name         equivalent         Description of when event fires
 -----------------  -----------------  -------------------------------

 Activate           OnSheetActivate    When the active sheet changes
                                       from another sheet to this sheet.

 Deactivate         OnSheetDeactivate  After the active sheet changes from
                                       this sheet to another sheet. Fires
                                       before the activated sheet displays.

 Calculate          OnCalculate        After every recalculation of this
                                       sheet.

 BeforeDoubleClick  OnDoubleClick      When a worksheet cell is double-
                                       clicked.

 SelectionChange    N/A                When a worksheet cell is clicked.

 BeforeRightClick   N/A                When a worksheet cell is
                                       right-clicked.

 Change             OnEntry            When a user changes the formula
                                       of a cell by typing, copy or paste,
                                       drag or drop, or undo.
				

?考

如需有關活頁簿或工作表的事件的詳細資訊,按一下 Visual Basic 說明中的 [索引] 索引標籤,鍵入下列文字
事件
然後再連按兩下所選取的文字,以移至事件程序主題。

屬性

文章編號: 161761 - 上次校閱: 2013年10月4日 - 版次: 1.0
這篇文章中的資訊適用於:
  • Microsoft Excel 97 Standard Edition
關鍵字:?
kbnosurvey kbarchive kbmt kbprogramming KB161761 KbMtzh
機器翻譯
重要:本文是以 Microsoft 機器翻譯軟體翻譯而成,而非使用人工翻譯而成。Microsoft 同時提供使用者人工翻譯及機器翻譯兩個版本的文章,讓使用者可以依其使用語言使用知識庫中的所有文章。但是,機器翻譯的文章可能不盡完美。這些文章中也可能出現拼字、語意或文法上的錯誤,就像外國人在使用本國語言時可能發生的錯誤。Microsoft 不為內容的翻譯錯誤或客戶對該內容的使用所產生的任何錯誤或損害負責。Microsoft也同時將不斷地就機器翻譯軟體進行更新。
按一下這裡查看此文章的英文版本:161761
Microsoft及(或)其供應商不就任何在本伺服器上發表的文字資料及其相關圖表資訊的恰當性作任何承諾。所有文字資料及其相關圖表均以「現狀」供應,不負任何擔保責任。Microsoft及(或)其供應商謹此聲明,不負任何對與此資訊有關之擔保責任,包括關於適售性、適用於某一特定用途、權利或不侵權的明示或默示擔保責任。Microsoft及(或)其供應商無論如何不對因或與使用本伺服器上資訊或與資訊的實行有關而引起的契約、過失或其他侵權行為之訴訟中的特別的、間接的、衍生性的損害或任何因使用而喪失所導致的之損害、資料或利潤負任何責任。

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com