Hope somebody can help with this one:
I am running a macro to combine several files into a single worksheet. After the single sheet has been created, only the top row's header entries should remain. I thus want to delete all rows that are exactly like row 1.
The header entries are not always the same - sometimes there are 20 columns, sometimes 50 columns, and the entries depend on the files being brought in - but fortunately all the header rows that are brought in are always the same. I thus need a macro that will check row 1, and then delete all rows that are similar to row 1, delete them, but leave row 1 intact.
All help much appreciated.
I am running a macro to combine several files into a single worksheet. After the single sheet has been created, only the top row's header entries should remain. I thus want to delete all rows that are exactly like row 1.
The header entries are not always the same - sometimes there are 20 columns, sometimes 50 columns, and the entries depend on the files being brought in - but fortunately all the header rows that are brought in are always the same. I thus need a macro that will check row 1, and then delete all rows that are similar to row 1, delete them, but leave row 1 intact.
All help much appreciated.