Save template using list of filenames

co

New Member
Joined
Jan 30, 2004
Messages
42
Hello all,

I have a one sheet template which I need to save as 200 new separate files.
On a separate spreadsheet I have a list of the 200 cost centres they need to be saved as.

Is there a macro to automatically saveas and rename the tab for each one to avoid me doing this manually?

Many thanks in advance,

co
 
Another obvious question - Is the macro posted in `ThisWorkbook' module of the Template workbook?
 
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Yes.

I've also tried with two new blank spreadsheets (except for some data in A1:A200). But in just comes up with the same error.

co
 
Upvote 0
Well, i replicated all the names etc. and i now have a directory of 200 files!

Hope your code does not have `costcenters' for 'costcentres'. Other than that, i really don't know what to suggest.
 
Upvote 0

Forum statistics

Threads
1,215,148
Messages
6,123,301
Members
449,095
Latest member
Chestertim

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top