Share via


INames.Add Method

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

Syntax

'Declaration
Function Add ( _
    Name As Object, _
    RefersTo As Object, _
    Visible As Object, _
    MacroType As Object, _
    ShortcutKey As Object, _
    Category As Object, _
    NameLocal As Object, _
    RefersToLocal As Object, _
    CategoryLocal As Object, _
    RefersToR1C1 As Object, _
    RefersToR1C1Local As Object _
) As Name
'Usage
Dim instance As INames
Dim Name As Object
Dim RefersTo As Object
Dim Visible As Object
Dim MacroType As Object
Dim ShortcutKey As Object
Dim Category As Object
Dim NameLocal As Object
Dim RefersToLocal As Object
Dim CategoryLocal As Object
Dim RefersToR1C1 As Object
Dim RefersToR1C1Local As Object
Dim returnValue As Name

returnValue = instance.Add(Name, RefersTo, _
    Visible, MacroType, ShortcutKey, _
    Category, NameLocal, RefersToLocal, _
    CategoryLocal, RefersToR1C1, RefersToR1C1Local)
Name Add(
    Object Name,
    Object RefersTo,
    Object Visible,
    Object MacroType,
    Object ShortcutKey,
    Object Category,
    Object NameLocal,
    Object RefersToLocal,
    Object CategoryLocal,
    Object RefersToR1C1,
    Object RefersToR1C1Local
)

Parameters

Return Value

Type: Microsoft.Office.Interop.Excel.Name

See Also

Reference

INames Interface

INames Members

Microsoft.Office.Interop.Excel Namespace