Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i get the Column letters of a cell (need to make it work past the Z column such as AA,AB) [duplicate]

Tags:

excel

vba

Possible Duplicate:
VBA function to convert column number to letter?

I want to have the column letters past the Z column, there are many techniques for getting it before Z column but after Z, nothing seems to work Is there a way to do so?

like image 667
Viladimir Avatar asked Dec 09 '12 14:12

Viladimir


1 Answers

Another method:

Public Function ColumnLettersFromRange(rInput As Range) As String

    ColumnLettersFromRange = Split(rInput.Address, "$")(1)

End Function
like image 186
Dick Kusleika Avatar answered Jan 04 '23 13:01

Dick Kusleika