Export (0) Print
Expand All

AddIns.Add Method 

Adds a new add-in file to the list of add-ins. Returns an AddIn object.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

'Usage
Dim Filename As String
Dim CopyFile As Object
Dim returnValue As AddIn
Dim addIns1 As AddIns
returnValue = addIns1.Add(Filename, CopyFile)

AddIn Add(
	[In] string Filename, 
	[In, Optional] object CopyFile
);
public AddIn Add(
	/*in*/System.String Filename, 
	/*in*/System.Object CopyFile
);
function Add(
	 Filename : String, 
	 CopyFile : Object
) : AddIn;

Parameters

Filename

Required String. The name of the file that contains the add-in you want to add to the list in the add-in manager.

CopyFile

Optional Object. Ignored if the add-in file is on a hard disk. True to copy the add-in to your hard disk if the add-in is on a removable medium (a floppy disk or compact disc). False to have the add-in remain on the removable medium. If this argument is omitted, Microsoft Excel displays a dialog box and asks you to choose.

This method doesn't install the new add-in. You must set the Installed property to install the add-in.


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:
© 2014 Microsoft