moving files using macros

i am trying to create a macro that will open a drawing in a predefined location then save it as a pdf into a different location. at which point the drawing file and the part or assembly file need to be move to a second predefined location. i have all of the macro working except for the file moving part

for example file structure looks like:

project submission

--> Approved

-->Released

-->PDF

-->Models

so when the macro runs it will open a drawing in the \\project submission\\Approved\\ folder create a pdf and save it into the \\project submission\\Released\\PDF\\ folder. then close it and move the drawing, part/assembly files from the \\project submission\\Approved\\ folder into the \\project submission\\Released\\Models\\ folder. then move to the next drawing till there are no more drawing in the \\project submission\\Approved\\ folder. thank you for any ideas or help you can provide.

Answers 1
DW
DW 2021-06-02 Best Answer

You using VBA? look at the FileSystemObject. This is for Excel but the FSO works the same: Move Files with VBA FileSystemObject (MoveFile) - Automate Excel