Created
June 19, 2013 18:52
-
-
Save brazilnut2000/5816887 to your computer and use it in GitHub Desktop.
VBA: Returns the column letters for the column given.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function ColumnLetter(colNum As Long) As String | |
Dim vArr | |
vArr = Split(Cells(1, colNum).Address(True, False), "$") | |
ColumnLetter = vArr(0) | |
End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment