Share via


IOLEObjects.Add Method

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function Add ( _
    ClassType As Object, _
    Filename As Object, _
    Link As Object, _
    DisplayAsIcon As Object, _
    IconFileName As Object, _
    IconIndex As Object, _
    IconLabel As Object, _
    Left As Object, _
    Top As Object, _
    Width As Object, _
    Height As Object _
) As OLEObject
'Usage
Dim instance As IOLEObjects
Dim ClassType As Object
Dim Filename As Object
Dim Link As Object
Dim DisplayAsIcon As Object
Dim IconFileName As Object
Dim IconIndex As Object
Dim IconLabel As Object
Dim Left As Object
Dim Top As Object
Dim Width As Object
Dim Height As Object
Dim returnValue As OLEObject

returnValue = instance.Add(ClassType, _
    Filename, Link, DisplayAsIcon, IconFileName, _
    IconIndex, IconLabel, Left, Top, Width, _
    Height)
OLEObject Add(
    Object ClassType,
    Object Filename,
    Object Link,
    Object DisplayAsIcon,
    Object IconFileName,
    Object IconIndex,
    Object IconLabel,
    Object Left,
    Object Top,
    Object Width,
    Object Height
)

Parameters

Return Value

Type: Microsoft.Office.Interop.Excel.OLEObject

See Also

Reference

IOLEObjects Interface

IOLEObjects Members

Microsoft.Office.Interop.Excel Namespace