Partager via


ToolbarButtons.Add Method

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

Syntax

'Declaration
Function Add ( _
    Button As Object, _
    Before As Object, _
    OnAction As Object, _
    Pushed As Object, _
    Enabled As Object, _
    StatusBar As Object, _
    HelpFile As Object, _
    HelpContextID As Object _
) As ToolbarButton
'Usage
Dim instance As ToolbarButtons
Dim Button As Object
Dim Before As Object
Dim OnAction As Object
Dim Pushed As Object
Dim Enabled As Object
Dim StatusBar As Object
Dim HelpFile As Object
Dim HelpContextID As Object
Dim returnValue As ToolbarButton

returnValue = instance.Add(Button, Before, _
    OnAction, Pushed, Enabled, StatusBar, _
    HelpFile, HelpContextID)
ToolbarButton Add(
    Object Button,
    Object Before,
    Object OnAction,
    Object Pushed,
    Object Enabled,
    Object StatusBar,
    Object HelpFile,
    Object HelpContextID
)

Parameters

Return Value

Type: Microsoft.Office.Interop.Excel.ToolbarButton

See Also

Reference

ToolbarButtons Interface

ToolbarButtons Members

Microsoft.Office.Interop.Excel Namespace