ShapeRange.PickUp 方法(Word)ShapeRange.PickUp method (Word)

會複製指定之圖案的格式。Copies the formatting of the specified shape.

語法Syntax

運算式PickUpexpression.PickUp

需要 expressionexpression Required. 代表 ShapeRange 物件的變數。A variable that represents a ShapeRange object.

備註Remarks

使用 Apply 方法,將複製的格式設定套用到另一個圖案。Use the Apply method to apply the copied formatting to another shape.

範例Example

這個範例會複製 myDocument 上第一個圖案的格式,然後將所複製的格式套用至第二個圖案。This example copies the formatting of shape one on myDocument and then applies the copied formatting to shape two.

Set myDocument = ActiveDocument 
With myDocument 
 .Shapes(1).PickUp 
 .Shapes(2).Apply 
End With

另請參閱See also

ShapeRange 集合物件ShapeRange Collection Object

支援和意見反應Support and feedback

有關於 Office VBA 或這份文件的問題或意見反應嗎?Have questions or feedback about Office VBA or this documentation? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.