XLL+ Class Library

CXllApp::XlVersion

Return the Excel version number

[C++]
static double XlVersion();

Return value

Excel's major and minor version numbers as the integer and fractional parts of a double precision floating point number e.g. 5.0 or 4.1.

Remarks

Since this function is static, it is not necessary to use an instance of CXllApp to invoke it. It is not therefore necessary to fix the MFC CWinApp instance using the XLL_FIX_STATE macro: you can use code such as:

dVersion = CXllApp::XlVersion();

Requirements

Header: xllplus.h

See Also

CXllApp Class | CXllApp Methods