So I have been googling this for a couple days now. The best thing I could find was a macro on rondebruin.nl, but I need some more specific help.
I have about twenty files in a folder, and will be adding an additional file every month. Each file is very similar, they all have a cover sheet, and then 4-5 worksheets with the data I want. The reason some files have less sheets is they revised the names of the worksheets this year for the monthly data, and added an extra worksheet. So I am dealing with two kinds of files, the first files have worksheets named "Capabilities - Cover" (this one I don't need), "Capabilities (1)" all the way to "Capabilities (4)". The updated files also have "Capabilties - Cover", but then "Capabilities (Light)" "Capabilties (Medium)", with the names in the brackets changing 5 times for a total of 6 worksheets.
Hopefully this isn't too confusing. All the worksheets with the same name from file to file are idemtical. But the range from worksheet to worksheet changes slightly, so the largest range I want is B11:S77.
I have figured out that I need a macro that gets the worksheets with a bracket in them, that weeds out the cover sheet. And I need to pull the range B11:S77 from all the sheets so that I don't miss any data. Plus, the macro must be able to add the additional workbook that I add to the folder every month.
I could really use some help (I am a very novice VBA user)
Thank you,
Mark
I have about twenty files in a folder, and will be adding an additional file every month. Each file is very similar, they all have a cover sheet, and then 4-5 worksheets with the data I want. The reason some files have less sheets is they revised the names of the worksheets this year for the monthly data, and added an extra worksheet. So I am dealing with two kinds of files, the first files have worksheets named "Capabilities - Cover" (this one I don't need), "Capabilities (1)" all the way to "Capabilities (4)". The updated files also have "Capabilties - Cover", but then "Capabilities (Light)" "Capabilties (Medium)", with the names in the brackets changing 5 times for a total of 6 worksheets.
Hopefully this isn't too confusing. All the worksheets with the same name from file to file are idemtical. But the range from worksheet to worksheet changes slightly, so the largest range I want is B11:S77.
I have figured out that I need a macro that gets the worksheets with a bracket in them, that weeds out the cover sheet. And I need to pull the range B11:S77 from all the sheets so that I don't miss any data. Plus, the macro must be able to add the additional workbook that I add to the folder every month.
I could really use some help (I am a very novice VBA user)
Thank you,
Mark