Add Method
Collapse the table of content
Expand the table of content
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

UserAccessList.Add Method 

Adds a user access list. Returns a UserAccess object.

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

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;



Required String. The name of the user access list.


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

© 2015 Microsoft