Hi All,
Looking for a unique solution, don’t know whether it is possible.
I have so many folders with employee names containing multiple files (Jan, Feb, Mar, and so on) in it.
I am looking for VBA code that will first read the folder name then go inside the folder and rename files ( Add prefix of Folder name) .
For example
Folder name – Sanket , Santosh, Zakir
Files inside the folder – Jan , Feb, Mar
VBA to help me rename files as – Sanket-Jan, Sanket-Feb, Sanket-Mar, Santosh-Jan, Santosh-Feb and so on.
Once this is done VBA to help me copy renamed files from respective folders and paste them in a separate folder called “Master”
Note:- File extension can be .xlsx, .PDF, .jpg etc.
Could you please help develop this Macro?
Thanks & Regards,
Sanket
Looking for a unique solution, don’t know whether it is possible.
I have so many folders with employee names containing multiple files (Jan, Feb, Mar, and so on) in it.
I am looking for VBA code that will first read the folder name then go inside the folder and rename files ( Add prefix of Folder name) .
For example
Folder name – Sanket , Santosh, Zakir
Files inside the folder – Jan , Feb, Mar
VBA to help me rename files as – Sanket-Jan, Sanket-Feb, Sanket-Mar, Santosh-Jan, Santosh-Feb and so on.
Once this is done VBA to help me copy renamed files from respective folders and paste them in a separate folder called “Master”
Note:- File extension can be .xlsx, .PDF, .jpg etc.
Could you please help develop this Macro?
Thanks & Regards,
Sanket