Forum Discussion
password protected excel in office 365
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...
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.
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)
- amitmahapatraNov 03, 2020Copper ContributorHi, yes you are right. I can do that in my own pc but not in office laptop because my company has blocked to download anything from One drive.. So I can update or upgrade anything in office laptop to work this...
The only way for me is to remove the normal password and have a VBA password encoded in the excel that will ask for password when open in office365 from one Drive on Web..
Can you please help with a code in VBA that can be used to ask for password when opening a Excel sheet? This is exactly what I need..