getColumnName static method
Get column name from column.
Implementation
static String getColumnName(int col) {
col--;
String strColumnName = '';
do {
final int iCurrentDigit = col % 26;
col = (col ~/ 26) - 1;
strColumnName = String.fromCharCode(65 + iCurrentDigit) + strColumnName;
} while (col >= 0);
return strColumnName;
}