Compartilhar via


IShapes.AddOLEObject Method

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

Syntax

'Declaration
Function AddOLEObject ( _
    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 Shape
'Usage
Dim instance As IShapes
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 Shape

returnValue = instance.AddOLEObject(ClassType, _
    Filename, Link, DisplayAsIcon, IconFileName, _
    IconIndex, IconLabel, Left, Top, Width, _
    Height)
Shape AddOLEObject(
    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.Shape

See Also

Reference

IShapes Interface

IShapes Members

Microsoft.Office.Interop.Excel Namespace