CopyPicture 方法 (Excel) OLEObjectOLEObject.CopyPicture method (Excel)

将所选对象作为图片复制到剪贴板。Copies the selected object to the Clipboard as a picture. VariantVariant.


表达式CopyPicture(外观格式)expression.CopyPicture (Appearance, Format)

_表达式_一个代表**OLEObject** 对象的变量。expression A variable that represents an OLEObject object.


名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
AppearanceAppearance 可选Optional XlPictureAppearanceXlPictureAppearance 指定图片的复制方式。Specifies how the picture should be copied. 默认值为 xlScreenThe default value is xlScreen.
FormatFormat 可选Optional XlCopyPictureFormatXlCopyPictureFormat 图片的格式。The format of the picture. 默认值为 xlPictureThe default value is xlPicture.

返回值Return value


支持和反馈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.