Share via


Application.ObjectChangeIcon Method (Project)

Displays the Change Icon dialog box to enable changing the icon of the active object on a Gantt chart or other view.

Syntax

expression .ObjectChangeIcon

expression A variable that represents an Application object.

Return Value

Boolean

Remarks

The object must be displayed as an icon and selected. The ObjectChangeIcon method is equivalent to the Change Icon command in the Convert dialog box. To open the Convert dialog box using the Microsoft Project 2010 user interface, do the following:

  1. Open the Project Options dialog box, click the Customize Ribbon tab, and then choose the list of commands not in the Ribbon.

  2. In the Customize the Ribbon drop-down list, select Main Tabs, and then click New Tab. Rename the tab, for example, Old Methods.

  3. Click New Group to add a group to the Old Methods tab. Rename the group, for example, Objects.

  4. Select the Objects group, add the Object and Convert commands to the group from the list of commands not in the Ribbon, and then click OK.

  5. On the Gantt chart, click Object in the Old Methods tab. In the Insert Object dialog box, click Bitmap Image. You can create a new image or add it from a file. Check Display As Icon.

  6. Select the bitmap image object on the Gantt chart, and then click Convert on the Old Methods tab of the Ribbon. In the Convert dialog box, click Change Icon.