Click to Rate and Give Feedback
MSDN
MSDN Library
Office Development
Office 2003
Reference
Methods
P
 PasteFace Method

  Switch on low bandwidth view
Office 2003 VBA Language Reference
PasteFace Method

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

expression.PasteFace

expression    Required. An expression that returns a CommandBarButton object.

Example

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
		




© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker