Export (0) Print
Expand All

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)

'Usage
Dim Name As String
Dim AllowEdit As Boolean
Dim returnValue As UserAccess
Dim userAccessList1 As UserAccessList
returnValue = userAccessList1.Add(Name, AllowEdit)

UserAccess Add(
	[In] string Name, 
	[In] bool AllowEdit
);
public UserAccess Add(
	/*in*/System.String Name, 
	/*in*/boolean AllowEdit
);
function Add(
	 Name : String, 
	 AllowEdit : Boolean
) : UserAccess;

Parameters

Name

Required String. The name of the user access list.

AllowEdit

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Community Additions

ADD
Show:
© 2015 Microsoft