Workbook.AddEvent

Use this function to add event code from the specified file to the document.

Syntax Parameters Return value
Sub Workbook.AddEvent( _
    FileName As String)
FileName [in]

Filepath of the workbook or macro to copy the document level events from.

Type: String

This function does not return a value.