Prepares the object for use by attaching to the specified Excel application instance and initializing the date offset.

Namespace:  XllPlus.ComWrappers.Runtime
Assembly:  XllPlus.ComWrappers.Runtime (in XllPlus.ComWrappers.Runtime.dll) Version: 7.0.9.1411 (7.0.9.1411)

Syntax

C#
public void Attach(
	Object app
)
Visual Basic (Declaration)
Public Sub Attach ( _
	app As Object _
)
Visual C++
public:
virtual void Attach(
	Object^ app
) sealed

Parameters

app
Type: System..::.Object
A valid instance of Excel, which can be acquired in VBA by passing the global variable Application.

Implements

IExcelWrapperEngine..::.Attach(Object)

Exceptions

ExceptionCondition
XllPlus.ComWrappers.Runtime..::.XllWrapperExceptionThrown if app is not a valid Application object or if the object has already been initialized.

See Also