Protect Document: Encrypt with Password – Word in Office 365

The script is:

  1. Go to the ‘File tab / Info’
  2. Click ‘Protect Document’ drop-down list
  3. Choose ‘Encrypt with Password’
  4. Save and Close the document
  5. Re-Open the document with wrong password, It can’t be open.
  6. Re-Open the document with correct password