Share via


UserAccessList.Add Method

Adds a user access list. Returns a UserAccess object.

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

Syntax

'Declaration
Function Add ( _
    Name As String, _
    AllowEdit As Boolean _
) As UserAccess
'Usage
Dim instance As UserAccessList
Dim Name As String
Dim AllowEdit As Boolean
Dim returnValue As UserAccess

returnValue = instance.Add(Name, AllowEdit)
UserAccess Add(
    string Name,
    bool AllowEdit
)

Parameters

  • Name
    Type: System.String

    Required String. The name of the user access list.

  • AllowEdit
    Type: System.Boolean

    Required Boolean. True allows users on the access list to edit the editable ranges on a protected worksheet.

Return Value

Type: Microsoft.Office.Interop.Excel.UserAccess

See Also

Reference

UserAccessList Interface

UserAccessList Members

Microsoft.Office.Interop.Excel Namespace