Library.BeforeInsertObject

This event is called when an object is about to be inserted into the Workbook.

Syntax Parameters Return Value
Event Library.BeforeInsertObject( _
    Workbook As Workbook, _
    WorkbookItem As WorkbookItem, _
    Placement As WorkbookPlacement, _
    ObjectToBeInserted As Object, _
    ByRef Cancel As Boolean)
  • Workbook [in]

Type: Workbook

  • WorkbookItem [in]

Type: WorkbookItem

  • Placement [in]

Type: WorkbookPlacement

  • ObjectToBeInserted [in]

Type: Object

  • Cancel [in,out]

Type: Boolean

-