【Method】
The `CopyPicture` method of the `Chart` object allows you to copy the selected chart as an image to the clipboard. The method syntax is as follows:
cht.CopyPicture(Appearance,Format)
Here, `cht` is the chart object, and the two parameters are:
– **Appearance**: Sets how the image is copied. A value of 1 copies the image as it appears on screen (default), and a value of 2 copies the image as it appears when printed.
– **Format**: Specifies the format of the copied image. A value of 2 copies the image as a bitmap (.bmp, .jpg, .gif, .png), and a value of -4147 copies the image as a vector format (supports .emf and .wmf).
Leave a Reply