Prepares the object for use by attaching to the specified Excel application instance
and initializing the date offset.
Namespace:
XllPlus.ComWrappers.RuntimeAssembly: XllPlus.ComWrappers.Runtime (in XllPlus.ComWrappers.Runtime.dll) Version: 6.3.4.831 (6.3.4.0831)
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
Exception | Condition |
---|---|
XllPlus.ComWrappers.Runtime..::.XllWrapperException | Thrown if app is not a valid Application object or if the object has already been initialized. |