Chart.Paste method (Excel)

Pastes chart data from the Clipboard into the specified chart.


expression.Paste (Type)

expression A variable that represents a Chart object.


Name Required/Optional Data type Description
Type Optional Variant Specifies the chart information to paste if a chart is on the Clipboard. Can be one of the following XlPasteType constants: xlPasteFormats, xlPasteFormulas, or xlPasteAll. The default value is xlPasteAll. If there's data other than a chart on the Clipboard, this argument cannot be used.


This example pastes data from the range B1:B5 on Sheet1 into Chart1.


Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.