Hi All,
I am trying to create an arrary from the column headers names in row 1. That step works ok.
Once the array is declared and fills with the column header names I do not want the array to change. I want the values preserved as this will go into a loop and perform some actions that cause the column headers names to change, but I need the arrary to stay the same as when it was declared.
Here is my coding for this part:
The problem line is the ReDim Preserve..... Excel states "Subscript out of range".Please Login or Register to view this content.
A side question:
1 to 24 represents all the columns names or range in the arrary.
When I declared my arrary in the locals window I noticed it in type field as Variant (1 to 1, 1 to 24). Why is Excel viewing this as 2 arrays? I thought it would just be Variant ( 1 to 24).
Thanks in advance for the assistance.
Bookmarks