Copy Method

Applies To

ComboBox control, Frame control, Page object, TextBox control, UserForm object.

Description

Copies the contents of an object to the Clipboard.

Syntax

object.Copy

The Copy method syntax has these parts:

Part

Description

object

Required. A valid object.


Remarks

The original content remains on the object.

The actual content that is copied depends on the object. For example, on a Page, the Copy method copies the currently selected control or controls. On a TextBox or ComboBox, it copies the currently selected text.

Using Copy for a form, Frame, or Page copies the currently-active control.

See Also

Cut method, Paste method.

Example

See the CanPaste property example.