Export (0) Print
Expand All

Worksheet.Startup Event (2007 System)

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

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll)

public event EventHandler Startup

The last thing to run in the constructor of the class that the user code is running in.

The following code example demonstrates a handler for the Startup event that displays a message when the worksheet has been initialized.

This example is for a document-level customization.

private void WorksheetStartup()
{
    this.Startup += new EventHandler(Worksheet1_Startup);
}

void Worksheet1_Startup(object sender, EventArgs e)
{
    MessageBox.Show(this.Name + " is starting up.");
}

Community Additions

ADD
Show:
© 2014 Microsoft