Hi there,
I have a macro that does various things with a pivot table, it then duplicates the file and saves it as something else.
I then need to close this duplicated file once it has been saved but when I use activeworkbook.close it closes the active workbook and the original file. I need the original pivot table still open to continue doing other duplications.
I have tried referencing the new file name and closing that but it still closes both files.
Any help would be greatly appreciated.
Thanks!
Richard
I have a macro that does various things with a pivot table, it then duplicates the file and saves it as something else.
I then need to close this duplicated file once it has been saved but when I use activeworkbook.close it closes the active workbook and the original file. I need the original pivot table still open to continue doing other duplications.
I have tried referencing the new file name and closing that but it still closes both files.
Any help would be greatly appreciated.
Thanks!
Richard