PasteFace Method

Applies To

CommandBarButton object.

Description

Pastes the contents of the Clipboard onto the specified command bar button control.

Syntax

expression.PasteFace

expression Required. An expression that returns a CommandBarButton object.

See Also

BuiltInFace property, CopyFace method, FaceId property, Id property.

Example

This example finds the built-in FileOpen button and pastes a custom face onto it from the Clipboard, where the user had previously altered it. This example will fail if a custom face doesn't already exist in the Clipboard; use the CopyFace method to copy a specified button face to the Clipboard.

Set myControl = CommandBars.FindControl(Type:=msoControlButton, Id:=23)
myControl.PasteFace