Stuart Smith
asked on
VBA Script for moving multiple files based on an excel list
I have a list of documents in an excel file and want to use this list to move specific PDF files from one folder to another. Is there a script that can be produced in Excel VBA to assist in this task. Also, can the script be made so it can be used for any type of document transfer?
An example of the script requirements would be
A POP-up box would appear requesting the list range
A POP-up box would appear requesting the location of files to be transferred
A POP-up box would appear requesting destination of the files to be moved
An example of the script requirements would be
A POP-up box would appear requesting the list range
A POP-up box would appear requesting the location of files to be transferred
A POP-up box would appear requesting destination of the files to be moved
ASKER
When I went to run the code an error appeared. I have attached the spreadsheet so you may review and advise.
Thanks in advance
Stuart
Move-Files.xlsm
Thanks in advance
Stuart
Move-Files.xlsm
What error?
BTW what range did you select? As per the existing code, you are supposed to...
1) Select the range in column A with file names.
2) Select the Source Folder where these files may exist.
3) Select the Destination Folder.
Then the code will check each file listed in column A in the selected Source Folder and if the file exists there, it will be moved to the Destination Folder.
BTW what range did you select? As per the existing code, you are supposed to...
1) Select the range in column A with file names.
2) Select the Source Folder where these files may exist.
3) Select the Destination Folder.
Then the code will check each file listed in column A in the selected Source Folder and if the file exists there, it will be moved to the Destination Folder.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you so much, this will save me a lot of work.
You're welcome!
The code assumes that the file names in the range are mentioned as file name only along with the file extension like File1.pdf etc.
You may have the different files in the range and the code will move them to the selected destination folder.
Open in new window