Hey
I have macros that creates several pdf files at specific folder.
The file names are as follows:
Article.pdf
Article.part1.pdf
Article.part2.pdf
Article.part3.pdf
The files are always in pdf format
The location is always C:\Temp
The filenames are always the same
In another words the paths of those four files and the names remain the same as follows:
C:\Temp\Article.pdf
C:\Temp\Article.part1.pdf
C:\Temp\Article.part2.pdf
C:\Temp\Article.part3.pdf
Until now it was a background of several macros that in the end produces those files - Now I will get to my question.
Now I would like to ask for help in order to write a new macro with my very little knowledge.
I'm searching for a Macro VBA that will prompt the user to save those four specific files with folder dialog.
In another words the macro will open a folder dialog and ask the user where does he want to save those four specific files - and copy them to the choosen folder
With my current little Knowledge I only know how to copy a file from a specific location to another specific location
Sub Copy_Four_Files()
FileCopy "C:\Temp\article.pdf", "C:\AnotherLocation\article.pdf"
FileCopy "C:\Temp\article.part1.pdf", "C:\AnotherLocation\article.part1.pdf"
FileCopy "C:\Temp\article.part2.pdf", "C:\AnotherLocation\article.part2.pdf"
FileCopy "C:\Temp\article.part3.pdf", "C:\AnotherLocation\article.part3.pdf"
End Sub
I want to change the Macro so that the user can choose where to save/copy those four specific files, and if possible also to rename the files during the process of the folder dialog / save as.
Thanks in advance,
I have macros that creates several pdf files at specific folder.
The file names are as follows:
Article.pdf
Article.part1.pdf
Article.part2.pdf
Article.part3.pdf
The files are always in pdf format
The location is always C:\Temp
The filenames are always the same
In another words the paths of those four files and the names remain the same as follows:
C:\Temp\Article.pdf
C:\Temp\Article.part1.pdf
C:\Temp\Article.part2.pdf
C:\Temp\Article.part3.pdf
Until now it was a background of several macros that in the end produces those files - Now I will get to my question.
Now I would like to ask for help in order to write a new macro with my very little knowledge.
I'm searching for a Macro VBA that will prompt the user to save those four specific files with folder dialog.
In another words the macro will open a folder dialog and ask the user where does he want to save those four specific files - and copy them to the choosen folder
With my current little Knowledge I only know how to copy a file from a specific location to another specific location
Sub Copy_Four_Files()
FileCopy "C:\Temp\article.pdf", "C:\AnotherLocation\article.pdf"
FileCopy "C:\Temp\article.part1.pdf", "C:\AnotherLocation\article.part1.pdf"
FileCopy "C:\Temp\article.part2.pdf", "C:\AnotherLocation\article.part2.pdf"
FileCopy "C:\Temp\article.part3.pdf", "C:\AnotherLocation\article.part3.pdf"
End Sub
I want to change the Macro so that the user can choose where to save/copy those four specific files, and if possible also to rename the files during the process of the folder dialog / save as.
Thanks in advance,