excel - Function to convert column number to letter? -


does have excel vba function can return column letter(s) number?

for example, entering 100 should return cv.

something return letter column 100

function col_letter(lngcol long) string dim varr varr = split(cells(1, lngcol).address(true, false), "$") col_letter = varr(0) end function 

test code

sub test() msgbox col_letter(100) end sub 

Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -