Share via

365 doesn't recognize password to change workbook structure

Andrés Israeliantz 0 Reputation points
2026-03-31T03:15:56.08+00:00

I bought a new PC last year. Loaded it with Microsoft 365. I had Office 2019 in my previous PC. Now Excel open my files but doesn't recognize my passwords to change Workbook Structure or view VBA code.

Microsoft 365 and Office | Excel | For home | Windows

2 answers

Sort by: Most helpful
  1. Andrés Israeliantz 0 Reputation points
    2026-04-01T14:34:49.7866667+00:00

    Hi Kai-H. Thanks for your interest in this matter. The only thing I have not tried is to delete the passwords in my old PC with 2019 because I don't have it anymore. Since 365 changes the passwords I will look for a PC with 2019 and do that.


  2. Kai-H 15,000 Reputation points Microsoft External Staff Moderator
    2026-03-31T09:16:25.43+00:00

    Hi, Andrés Israeliantz

    This usually means Excel is not dealing with the same type of protection the user expects, and workbook-structure protection and VBA project protection are checked separately. It can also happen if the file is fine but Excel on the new PC is handling trust settings or the file environment differently, and these passwords are case-sensitive.

    Here are some suggestions you can try:

    First, type the password into Notepad to verify the exact characters, keyboard language, Caps Lock, and NumLock, then paste it into Excel, since the password check is case-sensitive.

    For the VBA side, it is recommended that the file be saved locally, then opened after enabling content or placing it in a Trusted Location, because Microsoft 365 can block VBA until the workbook is trusted.

    If only certain files fail, it is also recommended to test by copying the sheets into a brand-new workbook and then moving the VBA code over, as copying the tab to a new workbook may resolve the protection problem for that file.

    Thank you for your patience in reading, I hope this information has been helpful to you. 


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment."    

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.