Write simple macro code to quickly open a Word document

Source: Internet
Author: User

For friends who often use word for office, the first thing to do when you start Word is to click the menu file → Open command, bring up the Open dialog box, and then browse to the Word document you want to edit and open it. If you start Word and you can pop the Open dialog box directly, does it make it easier for us to open the Word document that we need to edit? The following, I will give you how to use the "macro" to achieve.

The first step: Start Word 2003 (similar to other versions of the operation), then click the menu tools → macros → macros command to open the Macros dialog box, enter "Autoexec" (excluding outside quotes) in the text box below the macro name, and then click the Drop-down arrow to the right of the macro where you want to select Normal.dot (common template), and finally click the Create button to create a macro named "Autoexec."

Step two: After the creation of the macro named "Autoexec", a code window is automatically opened, and all of the contents between "Sub Autoexec ()" and "End Sub" are replaced with the following code:

Dlganswer = Application.dialogs

(wdDialogFileOpen). Show

When you have finished replacing the code, close the Code window, and all the code in Figure 2 window is saved automatically, and you can see the Open dialog box that pops up automatically when you exit and restart Word 2003.

How about, now we open the Word document, is it more convenient than the original? Interested friends might as well try

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.