XLL+ Class Library (6.3)

CXllApp::SetErrorHandling

Switch on or off XLM4 macro error handling

static SetErrorHandling(
   BOOL bValue
);

Parameters

bValue

TRUE to switch on error handling. FALSE to switch it off.

Remarks

This function can be used to control how Excel reacts to failed functions. It is equivalent to calling the XL4 macro "=ERROR(bValue)". If error handling is switched off, then no Excel alert boxes will be shown.

This function can only be called from macro functions. It will always fail if called from worksheet functions.

Requirements

Header: xllplus.h

See Also

CXllApp Class | CXllApp Methods