Microsoft KB Archive/167987

= OFF97: Behavior of the Edit Menu Item for a Control Differs =

Article ID: 167987

Article Last Modified on 1/19/2007

-

APPLIES TO


 * Microsoft Office 97 Standard Edition
 * Microsoft Word 97 Standard Edition
 * Microsoft Excel 97 Standard Edition
 * Microsoft PowerPoint 97 Standard Edition
 * Microsoft Access 97 Standard Edition

-



This article was previously published under Q167987



SUMMARY
In any of the programs listed at the beginning of this article, when you right-click a control in a document, the Edit menu item on the shortcut menu may behave differently in each program. This article explains the differences in behavior.



MORE INFORMATION
When you use the Control Toolbox to insert a control into a document, worksheet, presentation, or UserForm, you can view and/or edit the properties of the control by right-clicking it, and then clicking the appropriate menu item on the shortcut menu.

One of the menu items on the shortcut menu is either "" or " Object," where  is the name of the type of control (for example, CommandButton, OptionButton, CheckBox, and so on). If you point to this menu item, and then click Edit, you receive different results in different programs. These results are listed in the following table.   Program                   Result --

Microsoft Excel 97       The control is activated so that you can change its caption.

Microsoft Word 97        The Code window for the control is displayed so that you can edit the subroutine attached to the control.

Microsoft PowerPoint 97  The Code Window for the control is activated so that you can edit the subroutine attached to the control. In Microsoft Access 97, you receive an error message similar to the following:

The operation on the  object failed.

The OLE server may not be registered.

To register the OLE server, reinstall it.

Note that this behavior is by design of Microsoft Access 97.

If you want to activate the Code window for a control in Microsoft Excel 97, right-click the control and click View Code on the shortcut menu, or double-click the control.

If you want to change the caption for a control in Microsoft Word 97 or Microsoft PowerPoint 97, right-click the control, click Properties, and then change the caption in the Properties window.

Additional query words: OFF97 XL97 WORD97 PPT97 ACC97 ocx

Keywords: kbinfo KB167987

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.