共用方式為


OLEObject.CopyPicture Method (Excel)

Copies the selected object to the Clipboard as a picture. Variant.

Syntax

expression .CopyPicture(Appearance, Format)

expression A variable that represents an OLEObject object.

Parameters

Name

Required/Optional

Data Type

Description

Appearance

Optional

XlPictureAppearance

. Specifies how the picture should be copied. The default value is xlScreen.

Format

Optional

XlCopyPictureFormat

. The format of the picture. The default value is xlPicture.

Return Value

Variant

請參閱

概念

OLEObject Object Members

OLEObject Object