Okay, I have made the following changes to Andy's code:
- Added Application.GetOpenFileName to select source file.
- Rather than use Workbooks.Add to create a new workbook, I've created a template .xls that already contains the headers and is called for every iteration of the for loop.
- The template .xls is renamed with the name of the cell D5 ( i.e autofilter result), saved and closed for each iteration of the for loop.
All I need to do now is remove the header (Row 2) so it is not copied to the template along with the data.
Please can anybody help?
Bookmarks