I've tried searching for a solution using various tags but haven't quite found something that puts it all together. If there is something that addresses this, please point me in the right direction.
Scenario - a system generated file received daily, columns are not always in the same order. Need to extract specific columns, data filtered.
Proposed solution
Identify column numbers of required columns based on column header
Identify LastColumn
Hide all active columns (header data)
Unhide required columns
Copy/Paste the required, filtered data to a summary file (this part I have figured out).
Problem
How to pass the column number of the required columns to the code?
I know how to do a Find in the header row for specific header labels.
Once I have found the column (header label), how do I pass that column number to the code so that when I unhide the required columns, I can unhide columns 1, 3, 4, 97, 156, 257 (just as an example).
Any assistance would be greatly appreciated.
Scenario - a system generated file received daily, columns are not always in the same order. Need to extract specific columns, data filtered.
Proposed solution
Identify column numbers of required columns based on column header
Identify LastColumn
Hide all active columns (header data)
Unhide required columns
Copy/Paste the required, filtered data to a summary file (this part I have figured out).
Problem
How to pass the column number of the required columns to the code?
I know how to do a Find in the header row for specific header labels.
Once I have found the column (header label), how do I pass that column number to the code so that when I unhide the required columns, I can unhide columns 1, 3, 4, 97, 156, 257 (just as an example).
Any assistance would be greatly appreciated.