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

复制指定形状的格式。Copies the formatting of the specified shape.



expression 是必需的。expression Required. 一个代表 ShapeRange 对象的变量。A variable that represents a ShapeRange object.


Apply 方法可将复制的格式应用于另一个形状。Use the Apply method to apply the copied formatting to another shape.


以下示例首先复制 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 
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.