VBA code that replaces any numeric value with alphabet (Excel column).
Example
Code:
Function Convert_Number_to_Aplha(ByVal num As Long) As String
Dim buf As String
buf = Cells(1, num).Address(True, False)
Convert_Number_to_Aplha = Left(buf, InStr(buf, "$") - 1)
End Function
Code:
Sub sample1()
Dim S As String
Dim i As Integer
For i = 1 To 40
S = Convert_Number_to_Aplha(i)
Cells(1, i).Value = S
Next i
End Sub
Comment