Creating multiple excel files from a template - renaming and saving them based on list

Riyen

New Member
Joined
Mar 7, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello Guys!
I am really new with VBA, i hope You can help me with this.
My girlfriend got a task at her workplace, to create 400+ excel files. I think this could be easily done with VBA.
I tried many codes, but unfortunately i don't have the knowlege to modify them at the moment, but i really want to help her.

I have a template excel file : TMP.xlsx and an excel file with the lists of the file names and save paths: List.xlsx. Both of them have only one worksheet.

The VBA code should do the followings:
1. Create new folders and name them after the values in column B in the "list" file. (it would be nice if the path of the master folder could be added manually in a textbox)
2. Copy the cell value from column A from the "list.xlsx" file into the "TMP.xlsx" file's B5 cell.
3. Save the modified template files. Filenames: cell values in column A in "list.xlsx" file. Save path: cell values in column C in "list.xlsx" file.

Your help could save her from a lot of work. :D
Thank you very much in advance!
 

Attachments

  • sheet.PNG
    sheet.PNG
    7.9 KB · Views: 19

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.

Forum statistics

Threads
1,215,067
Messages
6,122,949
Members
449,095
Latest member
nmaske

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