共用方式為


Workbook.Startup Event

Occurs after the workbook is running and all the initialization code in the assembly has been run.

Namespace:  Microsoft.Office.Tools.Excel
Assemblies:   Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

Syntax

'Declaration
Event Startup As EventHandler
event EventHandler Startup

Remarks

The last thing to run in the constructor of the class that the user code is running in. Use this event for any additional initialization.

.NET Framework Security

See Also

Reference

Workbook Interface

Microsoft.Office.Tools.Excel Namespace