XLL+ Class Library (7.0)


Return the Excel version number

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.


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();


This method is deprecated. Use GetXlVersion instead.


Header: xllplus.h

See Also

CXllApp Class | CXllApp Methods