dougmarkham
Active Member
- Joined
- Jul 19, 2016
- Messages
- 252
- Office Version
- 365
- Platform
- Windows
Hi Folks,
I am looking for VBA code to find file names listed in a Worksheet in range A2 downward e.g., XYZ.pdf located in the filepath listed in column B2 downwards and then to delete those files (killfile).
I have found multiple examples of VBA to kill files e.g., all files in a folder, all files of a specific type in a folder, or all files containing some element in their filename; however, I cannot find anyone who has published code for killing specific files listed in a worksheet with cognate specific path.
Does anybody know how to do this and be willing to share this code?
Kind regards,
Doug.
I am looking for VBA code to find file names listed in a Worksheet in range A2 downward e.g., XYZ.pdf located in the filepath listed in column B2 downwards and then to delete those files (killfile).
I have found multiple examples of VBA to kill files e.g., all files in a folder, all files of a specific type in a folder, or all files containing some element in their filename; however, I cannot find anyone who has published code for killing specific files listed in a worksheet with cognate specific path.
Does anybody know how to do this and be willing to share this code?
Kind regards,
Doug.
Last edited: