Hi,
I frequently have to format reports in which numerous columns with the same headers need to be removed. For instance, my worksheet contains dozens of columns with the headers like "Detail X", "Detail Y", etc. and I want to quickly delete all of those columns.
And there's a catch here: In some case I'd like to be able to keep a certain "Detail X" or "Detail Y" column. i.e. Delete all Detail X columns except for column 5.
I'm wondering if some type of userform would be ideal here? For instance: Enter the header label for columns you'd like to find and delete, and then enter any exemptions. Enter the next header label for columns you'd like to find and delete ,and then enter any exemptions. And so on and so forth.
This might be a time-consuming thing to build, so I'm not asking anyone to do that. I'm just looking for any suggestions or ideas about how to accomplish this.
Some specific questions:
Would a userform be the most convenient way to do this?
In terms of selecting the columns, I'm thinking I would Find the header, select the column, delete, then loop; is that the most efficient way, or could I actually select all of the columns all at once?
Bookmarks