SetText

This method puts a text string on the Clipboard object using the specified Clipboard object format.

Syntax

clipboard.SetText data, [format]

Parameters

clipboard
Required. Reference to the Clipboard object.
data
Required. String data to be placed onto the clipboard.
format
Optional. There is only one Clipboard format setting; the rest are unsupported. The following table shows the setting for format.
Constant
Value
Description
vbCFText 13 Text (Default)

Return Value

None.

Remarks

The only supported data type is Unicode text.