undefined0
Technical User
Hi all,
Please help me how to write VBA code in Excel to rename pdf file in multiple subfolders (same name under each directory) to a define name. Folder structures are of follow:
C:\Test\A\Apple\F1\random123.pdf >>>>>rename file to>>>>>>>> F1_Apple.pdf
C:\Test\A\Adam\F1\randomxyz.pdf >>>>>rename file to>>>>>>>> F1_Adam.pdf
C:\Test\B\Baby\F1\123456.pdf >>>>>rename file to>>>>>>>> F1_Baby.pdf
C:\Test\B\Banana\F1\abfdefg.pdf >>>>>rename file to>>>>>>>> F1_Banana.pdf
I can define the path of the F1 folders (not the pdf file name though) in an Excel column. I can also define which name to rename to in another corresponding column. Also, there is only 1 file in each of the F1 folders.
Thank you for your help.
Please help me how to write VBA code in Excel to rename pdf file in multiple subfolders (same name under each directory) to a define name. Folder structures are of follow:
C:\Test\A\Apple\F1\random123.pdf >>>>>rename file to>>>>>>>> F1_Apple.pdf
C:\Test\A\Adam\F1\randomxyz.pdf >>>>>rename file to>>>>>>>> F1_Adam.pdf
C:\Test\B\Baby\F1\123456.pdf >>>>>rename file to>>>>>>>> F1_Baby.pdf
C:\Test\B\Banana\F1\abfdefg.pdf >>>>>rename file to>>>>>>>> F1_Banana.pdf
I can define the path of the F1 folders (not the pdf file name though) in an Excel column. I can also define which name to rename to in another corresponding column. Also, there is only 1 file in each of the F1 folders.
Thank you for your help.