Daniel Popa
Automotive
- Sep 23, 2016
- 19
Good morning
I am working on a macro that would save my files in two different folders. I know it sounds easy except:
-Folder 1 in the same all the time so this will be easy
-Folder 2 is part of a folder structure we use for each project.
Example of folder structure:
\\User
So I am working on files in the "work" folder and need to save a PDF version of the file in the "PDF" folder.
I managed to go back one level, from "Work" to "Project x" using the following code but I do not know how to go into PDF and save my file there.
Any help will be much appreciated.
I am working on a macro that would save my files in two different folders. I know it sounds easy except:
-Folder 1 in the same all the time so this will be easy
-Folder 2 is part of a folder structure we use for each project.
Example of folder structure:
\\User
-Project X
-Work
-PDF
-Images
I managed to go back one level, from "Work" to "Project x" using the following code but I do not know how to go into PDF and save my file there.
Code:
FileLocation2 = Left(MyDoc.Path, InStrRev(MyDoc.Path, "\") - 1)
Any help will be much appreciated.