Let your word remember what it is going to do

Source: Internet
Author: User

You may use Word to edit the same article for several days. So, during this time, do you want to automatically open the article as soon as you start Word, and locate the insertion point where you last edited it? The author here will use "automatic macros" to let word remember to quit when the scene of the method outlined below, may be helpful to you.

  One, automatic macros
If you need to do something repeatedly in Word, you can use macros to automate the work. In Word, a macro is a series of Word commands and instructions grouped together to form a command to automate the execution of a task. You can create and execute macros (a macro is actually a custom command) to replace a series of time-consuming and monotonous repetitive operations performed manually to automate the tasks you need. When you create a macro, you can run it automatically when you perform an action, such as starting Word or opening a document, by assigning a specific name to a macro, which is called an automatic macro, or "Auto" macro. The automatic macros provided by Word and their operating conditions are as follows:
Macro name Run condition
AutoExec When you start Word
AutoNew When you create a new document
AutoOpen when you open an existing document
AutoClose when you close a document
AutoExit when you quit Word

  Second, create macros
from the above 5 automatic macros, we know that the AutoExec macro will run automatically when you start Word, so long as we give the macro the ability to automatically open the last edited document, we can make word remember to quit the scene. The method for creating the AutoExec macro is as follows:
1. Point to Macros on the Tools menu, click the Macros submenu, open the Macros dialog box, in the Macro name box, type AutoExec (Figure 1), in the macro position drop-down box, select Normal.dot (Common template), and then enter or click the Create button. Open the Macro editing window.

  

2. Enter the following two lines of instruction between the "sub Autoexec ()" and "End Sub" of the Code window:
RecentFiles (1). Open
Application.goback
The first command is to open the recently edited document, please note: "(1)" is the number 1, not the letter L; the second command returns the previous edit bit, where the insertion point is when the document is closed.
3. Save the macro by clicking Save on the File menu.
4. From the File menu, click Close and return to Microsoft Word to exit the Macro editing window.
The above is the assumption that the user's Word does not have AutoExec macros, if there is a AutoExec macro, then the user simply select the "AUTOEXEC" macro in the Macros dialog box, click the Edit button, and add these two instructions to the macro.

  Third, record the macro
In fact, if you forget or simply don't Know "recentfiles" (1). Open "and" application.goback "two instructions, you can create the AutoExec macro by" Recording macros "by using the following methods:
1. Point to the Macro submenu on the Tools menu, and then click Record New Macro to open the Record Macro dialog box, type AutoExec in the Macro name box, and click OK (Figure 2). If the AutoExec macro already exists, a dialog box pops up asking "Do you want to replace the existing macro?" ", if you want to replace it, click the Yes button, or click the No button." If no is selected, the macro cannot be recorded.

  

2. If you have chosen "yes" or have not AutoExec macros, then start the macro recording process: Click the File menu, in the list of recently used files, click the first file, and then press the SHIFT+F5 key combination, which is to return the insertion point to the previous edit bit. Finally, point to Macros on the Tools menu and click Stop Recording.
Now open the document that you want to edit more than once, move the insertion point, and then quit Word. Then restart Word, how about the document you just opened automatically opens, and the insertion point is positioned to where it was last closed?

  Four, delete macros
Perhaps, after some time, you don't need word. Automatically open the last edited document each time you start, you can point to Macros on the Tools menu, click Macros, select the AutoExec macro in the Macro Name list box, and then click the Delete button. Delete the AutoExec macro.
In fact, the automatic macro functionality that Word provides is a big effect. The author, as mentioned above, aims to make a promotion, because you can use these automatic macros to customize other services for yourself and improve editing efficiency.

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.