Forum Discussion
password protected excel in office 365
The only option you have is to open the file in another Office package (no Excel for Web, best Excel 2007 to 2016) and unlock the file, see the instractions down unter please, if you need to open a .xlsm file you need a VBA code.
If this is necessary, please contact me again.
You can do this as long as it is your workbook.
Attention: You may only use the following instructions for your own files. Otherwise you could be liable to prosecution.
Unprotect Excel sheet without password using 7-ZIP (free software)
Für diese Anleitung benötigen Sie das Programm 7-Zip, herunterladen können Sie dies in Internet: https://www.7-zip.org/download.html
Folgen Sie dann unserer Schritt-für-Schritt-Anleitung oder schauen Sie sich die Kurzanleitung an.
Note: This way only works for Excel file in .xlsx format.
Hence, if your Excel workbook is in .xls format, just open it and then save it as .xlsx format.
Step 1: Change the Excel file name extension from .xlsx to .zip. Just click on Yes to make sure when prompted.
Step 2: Open the ZIP archive as 7-ZIP. Open the folder xl->worksheets and you can see threesheet.xml files. Select the sheet1.xml file. Right click on it and select Edit. Choose to open it withNotepad.
Step 3: Delete the tag beginning with sheetProtection. Then save and close the sheet1.xml file.
Step 4: Update the modified sheet1.xml file in the ZIP archive when prompted. Then close the ZIP archive.
Step 5: Change the ZIP fie name extension back to .xlsx. At this point, the Excel sheet has been unprotected. Open it and you can edit the sheet without password.
NikolinoDE Hi.. thanks for your prompt reply.
This is my worksheet ONLY. I want to avoid keeping it desktop and using it from OneDrive but i can't keep that file in OneDrive without password protected.
when I was using from desktop i had no issues and even if i download from onedrive and load into desktop using a USB, i am able to use it perfectly. no issues.
i think you are right, we must have to use VBA coding to have a password prompt before opening the excel sheet (its in .xlxs format) as normal excel feature is not working in office 365..
if you can help with VBA code that can help, it will be awesome... thanking in advance...
- NikolinoDENov 02, 2020Gold ContributorInstructions:
Open your own password-protected file in Excel.
Then open a new Excel file (workbook) in parallel.
Open VBA in the newly opened file (ALT + F11).
Select worksheet, copy in code in a sheet and execute macro (F5).
After a short (or long time, depending on the size of the file and the password), a message box appears with the text "Finished".
Save your file (the one with the ex password) and close everything. Select the file with the ex password, open it and everything works without a password.Please don't forget to Vote and Mark in the Community forum, my post, as a "right answer" and mark it with a "like" too . As it will be beneficial to more Community members reading in forum of the Community.Nikolino
I know I don't know anything (Socrates)
- Rbehrens63Jun 23, 2021Copper Contributorhow do you open your own password protected file if you don't have the password. If you don't have it, it won't open
- NikolinoDEJun 23, 2021Gold Contributor
As I said, try different ways to open it.
If ziping doesn't work, then google sheet ... or with secret ingredients :))
Here are the links again
2 Link: How to unprotect the excel sheet if forgot the password
Thank you for your patience and time.
Nikolino
I know I don't know anything (Socrates)
- pbolligerMar 29, 2021Copper Contributor
- NikolinoDEMar 29, 2021Gold ContributorThere is no easy solution in this case. You want a password protected file to unlock the password in Excel for web. Before that, you are bound by your company's rules not to open the protected OneDrive.
The simplest solution would be to buy an O365 subscription.
I can only offer the solution with zip, as I sent you at the beginning, which you probably threw without trying.
My knowledge ends here, maybe someone here in the forum knows more and can help you across the veins.
I wish you much success in your project.
Thanks for your time and understanding
- amitmahapatraNov 03, 2020Copper Contributor
NikolinoDE Hi Nikolino .. my apologies for the confusion.
what my requirement is to be able to use the same Password protection while opening the excel in office 365 in similar way, i am currently using in desktop version of excel.
I know that with office365 you can use the password option by opening the excel in desktop mode but in my office i can't download anything from OneDrive to desktop.. so i am not able to use the excel by opening through password, else i know the password and i can open it in my personal laptop... its just in my office laptop i can't...
so i am looking for a VBA solution which i want to use in the excel to ask for password before i open the excel in office365 without downloading to desktop excel application. I want to keep the password asking option before opening the excel.
I hope this one is clear now.
- NikolinoDENov 03, 2020Gold Contributor
As far as I've tried with my Excel for Web, if it can't open from OneDrive, he asks whether he can / may open the file from a desktop version and it works without problems. My Excel desktop then opens automatically without problems and asks for the password as usual.
Please update your PC and try again.
Some Further information below for your additional Info.Work with VBA macros in Excel for the web
Excel for the web
Sorry that I couldn't help anymore.
Thank you for your understanding and patience
Nikolino
I know I don't know anything (Socrates)