Document Location

Pestomania

Active Member
Joined
May 30, 2018
Messages
292
Office Version
  1. 365
Platform
  1. Windows
Hello,

This is a longshot but I don't know what else to try right now. I have a script that creates folders in the below structure:

  1. Purchase Order Packing List Backup
    1. Purchase Order Year (ex. 2020)
      1. Purchase Order Number (ex. 0115251)

Copies of the purchase orders are stored elsewhere (L:\Accounting\Purchasing - POs\2020 Purchase Orders\Period 1\0115251.pdf), the bold changes depending on year and period (month).
I need to create the script to go through these, "copy" the pdf file and save it in the folder structure accordingly (in this case; L:\Business Intelligence\Projects\Purchase Order Packing List Backups\2020\0115251).
If a pdf with the same name is already there, but the date modified is different, save a new copy, otherwise bypass.

Is this possible?
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,215,580
Messages
6,125,654
Members
449,245
Latest member
PatrickL

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