Hello,
I want to load an array with values of my column headers like below.
vHeaders = .Range("A1:A10").Value
However, I only want the alternating columns added and for it to be dynamic based on columns from the endcol
Essentially without hardcode addresses
VHeadersA = .Range("A1","A3","A5","A7","A9").Value
VHeadersA = .Range("A2","A4","A6","A8","A10").Value
I've thought to hide columns, then add the values of the visible headers, but It only loads the first value to a variable
I want to load an array with values of my column headers like below.
vHeaders = .Range("A1:A10").Value
However, I only want the alternating columns added and for it to be dynamic based on columns from the endcol
Essentially without hardcode addresses
VHeadersA = .Range("A1","A3","A5","A7","A9").Value
VHeadersA = .Range("A2","A4","A6","A8","A10").Value
I've thought to hide columns, then add the values of the visible headers, but It only loads the first value to a variable