CopyButtonImage

Syntax

CopyButtonImage Toolbar$, Tool [Context]

Remarks

Copies the face of the specified toolbar button so that the face can be pasted onto another button using PasteButtonImage.

Argument

Explanation

Toolbar$

The name of the toolbar, as it appears in the Toolbars dialog box (View menu).

Tool

A number corresponding to the button face to copy, where 1 is the first button on the specified toolbar, 2 is the second, and so on.

Context

Specifies which button face Word copies:

0 (zero) or omitted The button face that is displayed when a document based on the Normal template is active.

1 The button face that is currently displayed.

Note that the button face that is displayed depends on the custom settings, if any, of the active template, any loaded global templates, and the Normal template.


Example

This example pastes the face of the third button on the Standard toolbar (the Save button) onto the first button of a custom toolbar named "TestBar":


CopyButtonImage "Standard", 3
PasteButtonImage "TestBar", 1

See Also

AddButton, ChooseButtonImage, EditButtonImage, MoveButton, PasteButtonImage, ResetButtonImage