Word2003 the toolbar of a document add an external program

Source: Internet
Author: User

When you run a program, you sometimes run another program in order to need it. At this point, you must reduce or minimize the current program's window, and then click the desktop or search the folder to find the program you want to run. What if you need to run some external programs, such as calculators, address books, or graphic software, in Word ? Is there a simple way to get them to do it in one click? The answer is yes, and that is to use macros to add shortcut buttons directly to Word 's sidebar.

  The method is as follows:

After you start Word software, execute "tools → macros → macros ..." command, bring up the Macro dialog box, type the name of the macro in the Macro Name text box, take "ACDSee" as an example, and then click the Create button, and Word will automatically enter the VisualBasic editor (Figure 1).

VB code window has been automatically added a few lines of code, between "Subacdsee ()" and "endsub", add our own code: Shell "C:Program FILESACD systemsacdsee10.0acdsee10.exe", The shell is a command that is used in Word macros to run external programs, empty one and then enter the path and program name of the program you want to run between the Latin double quotes, and then close the VB editor back to the Word editing window (Figure 2).

Execute tools → Customize command to bring up the Customize dialog box, click the Commands tab, select Macros in categories on the left, and then drag and drop a command named "Normal.NewMacros.ACDSee" in the right command box to the appropriate location in the toolbar . Right-click the new command button and choose Default Style from the right-click menu. You can also change the icon for this button by changing the button icon.

After you edit the document in Word, you can click the button to call ACDSee to see the picture at any time. Other program shortcut buttons can be customized and so on.

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.