How do you convert a numerical number to an Excel column name in C# without using automation getting the value directly from Excel.
Excel 2007 has a possible range o
Coincise and elegant Ruby version:
def col_name(col_idx) name = "" while col_idx>0 mod = (col_idx-1)%26 name = (65+mod).chr + name col_idx = ((col_idx-mod)/26).to_i end name end