excel vba get column number from column name
'For column IV...
ColNum = Columns("IV").Column
excel vba get column number from column name
'For column IV...
ColNum = Columns("IV").Column
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us