XLL+ Class Library (6.3)

CXllApp::SetUseAutomation

Returns the value of the UseAutomation attribute

void SetUseAutomation(
   BOOL bUseAutomation
);

Parameters

bUseAutomation

This value will set the value of the UseAutomation attribute.

Return Value

Sets the value of the UseAutomation attibute. If this attribute is set to TRUE, then the addin will get a handle to Excel's COM interface during initialization. If it is FALSE, then the COM interface will not be available to the add-in.

Deprecation

NoteNote:

This method is deprecated.

Remarks

The method must be called during CXllApp::InitInstance in order to have any effect.

Requirements

Header: xllplus.h

See Also

CXllApp Class | CXllApp Methods | CXllCom object | CXllApp::GetApplicationDispatch() | CXllApp::GetUseAutomation()