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#
void Attach(
	Object app
)
Visual Basic (Declaration)
Sub Attach ( _
	app As Object _
)
Visual C++
void Attach(
	Object^ app
)

Parameters

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

Exceptions

ExceptionCondition
XllPlus.ComWrappers.Runtime..::.XllWrapperExceptionThrown if app is not a valid Application object.

See Also