Macro to Copy PDF Files to Destination folder based on cell information

harinsh

Active Member
Joined
Feb 7, 2012
Messages
273
Hi Everyone,

I'm looking for one assistant....I have folder which contains 100+ PDF files and these file names I have it in my excel say it start from A2 cell... I would like to move PDF files to different folder based on PDF file name which is there in the excel sheet....

For Example: If A2 cell value says "CITY-NW-2012" then same file name will be available in the given folder path so, it should get copy and to paste it in destination folder which I choose....

Is it possible to perform this activity through excel macro?? If yes can anyone will provide me the vba code....it would really helpful if I get this output....

Thanks you,
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hello,

I have got the same requirement where i have one folder containing 1000 of pdf files and another excel list which contains the file name and destination folder name.The macro should go look for the folder name at destination if not found create one and paste the file.If folder exists then dont create new but just copy.
I was just wondering if you were able to fix your above issue which might help me as well.
Thank you
 
Upvote 0

Forum statistics

Threads
1,217,371
Messages
6,136,170
Members
449,996
Latest member
duraichandra

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