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

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

语法Syntax

expressionexpression. CopyPicture( _Appearance_ , _Format_ )

expression 一个表示 Range 对象的变量。expression A variable that represents a Range object.

参数Parameters

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

返回值Return value

VariantVariant

另请参阅See also

Range 对象Range 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.