I would like to zip all .xls workbooks in folder C:test1 and in the sub-folders of test1 containing the text (P) in the name of the workbook eg BR1_Accnts (P).xls, PE_Accnts (P).xls etc are to be zipped
I have code to do this which I have tried to adapt, but get a compile error: syntax error
I do not want to have to select the files to zip as I have several subfolders within C:test1. All the workbooks in this folder and sub-folder containing (P) in the text for eg BR1_Accnts (P).xls, PE_Accnts (P).xls etc are to be zipped
I have both WinRAR and 7-zip installed on my Laptop
It would be appreciated if someone would kindly help me to resolve this
I have also posted on Ozgrid.com