Hello everybody....
Here is my problem. I have found some vba that may do the trick i want but none of them in the way i need it.
So here is the description. I have multiple excel files in a folder and subfolders. I DON't protect the workbooks (excel files) but only the worksheets, all with the same password (f.e password=123456).
So i need a vba that when i run it, it will open a windows explorer to select the folder i want. Then open all workbooks inside the folder i choose (and its subfolders), unprotect all the worksheets of each workbook, save it and close it.
The reason i need a popup window when i run the vba so i can choose the folder, is that i use folders names with greek characters. So all the vba i found you have to put the path of the folder inside vba f.e:
cStartFolder = "C:\myfolder" 'no slash at end
So when i copy my path f.e:
C:\OneDrive\ΑΠΟΘΗΚΗ\Ε ΔΠ-10.06 (ΩΡΑΡΙΑ ΕΡΓΑΣΙΑΣ) ΑΠΟΘΗΚΗ\TEST
and paste it in vba, it becomes:
C:\OneDrive\ÎÎ ÎÎÎÎÎ\Î ÎÎ -10.06 (ΩΡÎΡÎÎ ÎΡÎÎΣÎÎΣ) ÎÎ ÎÎÎÎÎ\TEST
and because i have to change many files in many folders it will take me a lot of time to change the path manually by writing all of it every time.
P.S i also would like the above same vba but to protect all sheets of multiple workbooks in a folder and its subfolders. So the reverse procedure.
Thanks in advance everyone for your time.
Here is my problem. I have found some vba that may do the trick i want but none of them in the way i need it.
So here is the description. I have multiple excel files in a folder and subfolders. I DON't protect the workbooks (excel files) but only the worksheets, all with the same password (f.e password=123456).
So i need a vba that when i run it, it will open a windows explorer to select the folder i want. Then open all workbooks inside the folder i choose (and its subfolders), unprotect all the worksheets of each workbook, save it and close it.
The reason i need a popup window when i run the vba so i can choose the folder, is that i use folders names with greek characters. So all the vba i found you have to put the path of the folder inside vba f.e:
cStartFolder = "C:\myfolder" 'no slash at end
So when i copy my path f.e:
C:\OneDrive\ΑΠΟΘΗΚΗ\Ε ΔΠ-10.06 (ΩΡΑΡΙΑ ΕΡΓΑΣΙΑΣ) ΑΠΟΘΗΚΗ\TEST
and paste it in vba, it becomes:
C:\OneDrive\ÎÎ ÎÎÎÎÎ\Î ÎÎ -10.06 (ΩΡÎΡÎÎ ÎΡÎÎΣÎÎΣ) ÎÎ ÎÎÎÎÎ\TEST
and because i have to change many files in many folders it will take me a lot of time to change the path manually by writing all of it every time.
P.S i also would like the above same vba but to protect all sheets of multiple workbooks in a folder and its subfolders. So the reverse procedure.
Thanks in advance everyone for your time.