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
- Button
Type: System.Object
- Before
Type: System.Object
- OnAction
Type: System.Object
- Pushed
Type: System.Object
- Enabled
Type: System.Object
- StatusBar
Type: System.Object
- HelpFile
Type: System.Object
- HelpContextID
Type: System.Object
Return Value
Type: Microsoft.Office.Interop.Excel.ToolbarButton