Add a password to a document in bulk with a macro command

Source: Internet
Author: User
Tags prepare

For security reasons, many people add passwords to Office documents and, for memory purposes, may use the same password for all Office documents. However, it is cumbersome to repeat the process of document encryption every new document is edited. Here's a good way to automatically add a unified password to all of the specified Office documents, and we'll take word 2007 for example.

STEP1: First click the "view → macro → record macro" command, pops up the Record Macro dialog box, type the name password for the macro in the Macro Name field, select the all Documents (NORMAL.DOTM) option in the Save macros in column, and type a description of the macro in the Description box, such as Automatically add a unified password to the new document, and then click OK to start recording the macro.

STEP2: Click the Office Button, position the cursor to the Prepare option, automatically display the prepare menu on the right, select the Encrypt document tab, eject the Encrypt Document dialog box, enter the password you want to set in the Password box, and click OK. Then the system will pop up the confirmation dialog again, just enter the password again, and then click the "OK" button again.

STEP3: Click the view → macro command again, click the Stop Recording Macro button, and then click the View Macro button to see the macro you just recorded.

After Setup, the password macro runs automatically every time the document is closed. So when we create a new or open any document and close or exit, the program asks if you want to save the changes to the document, and if you click Yes, the document will be added with a password, and click No to add the password. How, the introduction of this method is not very convenient!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.