Microsoft KB Archive/68553

Accelerator Keys for the PowerPoint File Insert Submenu PSS ID Number: Q68553 Article last modified on 10-29-1991 PSS database name: W_PowerPt

2.00

WINDOWS

Summary:

The [Embedding] section of the WIN.INI file can be modified to provide accelerator keys for the entries in the File menu’s Insert submenu. This allows you to insert a specific embedded object type more quickly with the use of keyboard commands only. Insert the ampersand (&) character immediately in front of the character in the human readable classname that you want to use for an accelerator key.

This will change the entries in the Insert submenu so that each accelerator key will be indicated by the underlining of the appropriate letter in each menu entry.

Accelerator keys can only be used when the Insert submenu is currently displayed on the screen.

More Information:

The human readable classname is the second argument to the right of the equal sign in each entry on the [Embedding] section of the WIN.INI file. In the following examples, the [Embedding] section contains the standard entries for PowerPoint Graph and Microsoft Excel for Windows. The three default classnames are Graph, ExcelWorksheet, and ExcelChart.

Note: The entries in the [Embedding] sections listed in the following examples actually appear on single lines in the WIN.INI file, but are word wrapped here for convenience.

Example 1
With the sample [Embedding] section below, you can use the G key to embed a PowerPoint Graph, the W key to embed an Excel worksheet, and the C key to embed an Excel chart.

[Embedding] Graph=Business Graphs from PowerPoint Graph, &Graph, PPTGraph.exe, picture ExcelWorksheet=Worksheet created by Microsoft Excel, Excel&Worksheet, Excel.exe, picture ExcelChart=Chart created by Microsoft Excel, Ex&celChart, Excel.exe, picture

The modified classnames would then be listed in their usual order in the Insert submenu, but with an underscore appearing under the designated accelerator key.

Example 2
You can use the accelerator key assignment in conjunction with changing the actual text of the classnames to alter the order of the entries in the Insert submenu. With the sample [Embedding] section below, you can use the 1 key to embed a PowerPoint Graph, the 2 key to embed an Excel worksheet, and the 3 key to embed an Excel chart.

[Embedding] Graph=Business Graphs from PowerPoint Graph, &1 Graph, PPTGraph.exe, picture ExcelWorksheet=Worksheet created by Microsoft Excel, &2 Excel Worksheet, Excel.exe, picture ExcelChart=Chart created by Microsoft Excel, &3 Excel Chart, Excel.exe, picture

The modified classnames would then be listed in the Insert submenu in the following order with the numbers underlined:

1 Graph 2 Excel Worksheet 3 Excel Chart

Copyright Microsoft Corporation 1991.