vba get column letter from range code example
Example: excel vba function to convert column number to letter
Function ColName(n)
ColName = Split(Cells(, n).Address, "$")(1)
End Function
Function ColName(n)
ColName = Split(Cells(, n).Address, "$")(1)
End Function