SetText

Puts a text string on the Clipboard object using the specified Clipboard object format. Named arguments are not supported.

Syntax

object.SetText data, format

The parts of the SetText method syntax are described in the following table.

Part Description
object Required. An object expression that evaluates to an object.
data Required. String data to be placed onto the Clipboard.
format Optional. A constant or value that specifies one of the Clipboard formats recognized by Visual Basic, as described in Settings.

Settings

The settings for format are described in the following table.

Constant Value Description
vbCFLink &HBF00 DDE conversation information
vbCFText 1 (Default) Text

Remarks

The only supported data type is UniCode Text.