Share via


Selection.Copy Method

Copies the specified object to the Clipboard.

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

Syntax

'Declaration
Sub Copy
'Usage
Dim instance As Selection

instance.Copy()
void Copy()

Remarks

Use the Paste method to paste the contents of the Clipboard.

Examples

This example copies the selection in window one to the Clipboard and then pastes it into the view in window two. If the Clipboard contents cannot be pasted into the view in window two — for example, if you try to paste a shape into slide sorter view — this example fails.

Windows(1).Selection.CopyWindows(2).View.Paste

See Also

Reference

Selection Interface

Selection Members

Microsoft.Office.Interop.PowerPoint Namespace