XLL+ Class Library

CXlRef::MaxCol

Returns the maximum legal column number (counting from 0)

[C++]
static long MaxCol();

Return value

The maximum legal column number, counting from 0 as column A.

Remarks

This is 255 in all versions of Excel.

You can find more information about the limits of array sizes in System Limits.

Requirements

Header: xllplus.h

See Also

CXlRef Class | CXlRef Methods | CXlRef::MaxRow() | System Limits