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
Appearance
Type: Microsoft.Office.Interop.Excel.XlPictureAppearanceOptional XlPictureAppearance. Specifies how the picture should be copied. Can be one of the following XlCopyPictureFormat constants:
xlBitmap
xlPicturedefault
Format
Type: Microsoft.Office.Interop.Excel.XlCopyPictureFormatOptional 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