How to delete a worksheet from multiple files
Hello, hope you can help with this.
I have 50 Excel workbooks, all containing two sheets. The first worksheet is called "Contents" across all workbooks, the second one has a unique name in each workbook (which matches the file name). I need to import the second sheet from all these files in one excel workbook.
I used to use Asap utilities to import multiple files in one workbook, however as far as I understand, this only imports the active sheet from each file. So whenever I try to import the above workbooks it only imports the "Contents" sheet from each of them, as this is the active one.
How can I delete the 'Contents' sheet from each file, so that I can then import the right sheets into one file?
As there are so many files, it does not make sense to open each file, click on enable editing, delete the '"Contents" sheet, save and close.
Ultimately what I need to do is to merge all the data from each second sheet into one big worksheet. I already have a macro for this, which takes all the sheets from my workbook and merge them together, keeping the first row of the first sheet as headers and getting rid of the first row of all the other sheets). But I need to get all the right sheets in one file first.
Could you please advice on how to do this? Thank you very much.