In the top-left corner of the screen, click the Microsoft Office Button.Open Microsoft Word or Excel and the document or spreadsheet you want to password protect.Save the file to save the new password.Type a password again in the Reenter password text field and click OK.Type a password in the Password text field and click OK.Click Encrypt with Password to require a password to open the document or Restrict Editing to limit or block other users from making edits to the document.Open Microsoft Word or Excel and the document or spreadsheet you want password protect.Click the Protect Document or Protect Workbook option.Access the Microsoft Word Online or Excel Online application in your Internet browser and the document or spreadsheet you want to protect.Enabling the Protect option only sets the document or spreadsheet to open as read-only. Word & Excel Online do not support setting a password to protect entire documents and spreadsheets.