CopyFace Method

Applies To

ToolbarButton Object.

Description

Copies the specified button face to the Clipboard. This method copies only the bitmap button face, not the button itself.

Syntax

object.CopyFace

object

Required. The ToolbarButton object.

Remarks

This method cannot be used with a toolbar button that is a gap or that has a palette or list attached (such as the Font or Style buttons).

See Also

BuiltIn Property, BuiltInFace Property, PasteFace Method.

Example

This example copies the bitmap face of button one (the New Workbook button) on the Standard toolbar and pastes it onto button three (the Save button).


With Toolbars("Standard")
    .ToolbarButtons(1).CopyFace
    .ToolbarButtons(3).PasteFace
End With