工作簿和工作表应用程序事件的 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 标准版
关键字:?
kbnosurvey kbarchive kbmt kbprogramming KB161761 KbMtzh
机器翻译
注意:这篇文章是由无人工介入的微软自动的机器翻译软件翻译完成。微软很高兴能同时提供给您由人工翻译的和由机器翻译的文章, 以使您能使用您的语言访问所有的知识库文章。然而由机器翻译的文章并不总是完美的。它可能存在词汇,语法或文法的问题,就像是一个外国人在说中文时总是可能犯这样的错误。虽然我们经常升级机器翻译软件以提高翻译质量,但是我们不保证机器翻译的正确度,也不对由于内容的误译或者客户对它的错误使用所引起的任何直接的, 或间接的可能的问题负责。
点击这里察看该文章的英文版: 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