Returns an error value to Excel
[C++]
static LPXLOPER RetError(
WORD wError
);
An error number (see Error Values).
This function returns a pointer to some static memory containing an error code.
This static function can be used to return a CXlOper result containing an error code
from an add-in function, instead of CXlOper::Ret(). For example:
if (input < 0)
return CXlOper::RetError(xlerrNum);
Header: xllplus.h
CXlOper Class
| CXlOper Methods
| CXlOper::Ret()
| CXlOper::RetString()