Menus.Add Method
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
Function Add ( _
Caption As String, _
Before As Object, _
Restore As Object _
) As Menu
'Usage
Dim instance As Menus
Dim Caption As String
Dim Before As Object
Dim Restore As Object
Dim returnValue As Menu
returnValue = instance.Add(Caption, Before, _
Restore)
Menu Add(
string Caption,
Object Before,
Object Restore
)
Parameters
- Caption
Type: System.String
- Before
Type: System.Object
- Restore
Type: System.Object
Return Value
Type: Microsoft.Office.Interop.Excel.Menu