Using Excel VBA to copy one file and save it under a different folder with a different name

etamansoor

New Member
Joined
Oct 28, 2016
Messages
1
Guys,

I want to automate a redundant task that I do every day as a part of my work.

Let's say I have a file with a standard name in a Source location, then I have a destination location.

I want to copy this one file and save it as let's say 10 files with different names from an excel sheet.

Example

Source Location: C:\Users\Desktop\Source\
File Name - StandardBathroon.jpg

Destination Location: C:\Users\Desktop\Source\
Destination File Names:
1. KingBathroom.Jpg
2. QueenBathroom.Jpg
3. TwinBathroom.Jpg

I usually get the naming list from my superiors on an excel sheet, usually it has atleast 10 different names.

Is there I could get a excel vba code with a button to prform this.

Please help me out.

Thank you and Have a happy Friday.

Rihanna
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,215,022
Messages
6,122,726
Members
449,093
Latest member
Mnur

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