Returns a text string from the Clipboard object. Named arguments are not supported.
object.GetText (format)
The parts of the GetText method syntax are described in the following table.
| Part | Description |
|---|---|
| object | Required. An object expression that evaluates to an object. |
| format | Optional. A value or constant that specifies the Clipboard object format, as described in Settings. Parentheses must enclose the constant or value. |
The settings for format are described in the following table:
| Constant | Value | Description |
|---|---|---|
| vbCFLink | &HBF00 | DDE conversation information |
| vbCFText | 1 | (Default) Text |
| vbCFRTF | &HBF01 | Rich Text Format (.rtf file) |
The only supported data type is UniCode Text.