Return the Excel version number
static int GetXlVersion( ); |
Excel's major version number as an integer.
Since this function is static, it is not necessary to use an instance of CXllApp to invoke it. You can use code such as:
int version = CXllApp::GetXlVersion();
Header: xllplus.h