Range.CopyPicture Method

Copies the selected object to the Clipboard as a picture.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function CopyPicture ( _
    Appearance As XlPictureAppearance, _
    Format As XlCopyPictureFormat _
) As Object
'Usage
Dim instance As Range
Dim Appearance As XlPictureAppearance
Dim Format As XlCopyPictureFormat
Dim returnValue As Object

returnValue = instance.CopyPicture(Appearance, _
    Format)
Object CopyPicture(
    XlPictureAppearance Appearance,
    XlCopyPictureFormat Format
)

Parameters

  • Format
    Type: Microsoft.Office.Interop.Excel.XlCopyPictureFormat

    Optional XlCopyPictureFormat. The format of the picture. Can be one of the following XlPictureAppearance constants:

    • xlPrinter. The picture is copied as it will look when it's printed.

    • xlScreendefault. The picture is copied to resemble its display on the screen as closely as possible.

Return Value

Type: System.Object

See Also

Reference

Range Interface

Range Members

Microsoft.Office.Interop.Excel Namespace