Answers for "excel vba name header from a column"

VBA
1

excel vba column letter

Function ColumnLetter(pColIndex As Long) As String
    ColumnLetter = Replace(Cells(1, pColIndex).Address(True, False), "$1", "")
End Function
Posted by: Guest on January-19-2021
0

get all column names from excel vba

Sub datacollect()
Dim heading() As String
Dim i As Integer
i = -1
For Each x In Rows(1).Cells
    If x.Value = "" Then Exit For
    i = i + 1
    ReDim Preserve heading(i) As String
    heading(i) = x.Value
Next x
End Sub
Posted by: Guest on January-10-2021

Code answers related to "VBA"

Browse Popular Code Answers by Language