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.