vba get column name from range code example
Example 1: excel vba get column name from number
'For column number 256...
ColName = Split(Cells(, 256).Address, "$")(1)
Example 2: excel vba Column Name from Column Number
' Column name to column number
ColName = "A"
Debug.Print Range(ColName & 1).Column ' 1
' Column number to column name
ColNb = 1
Debug.Print Split(Cells(, ColNb).Address, "$")(1)