Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Pastes the contents of the Clipboard onto a command bar button control.
expression**.PasteFace**
*expression * Required. An expression that returns a CommandBarButton object.
This example finds the built-in FileOpen button and pastes the face from the Spelling and Grammar button onto it from the Clipboard.
Set myControl = CommandBars.FindControl(Type:=msoControlButton, Id:=2)
myControl.CopyFace
Set myControl = CommandBars.FindControl(Type:=msoControlButton, Id:=23)
myControl.PasteFace
Applies to | CommandBarButton Object
See Also | BuiltInFace Property | CopyFace Method | FaceId Property