Copies ASCII text data to the Clipboard.
Return Value
One of the following ReturnCode enumeration values.
Member |
Description |
Cancelled |
Cancelled. |
Error |
Error. |
PermissionRequired |
Permission is required. |
Success |
Success. |
Timeout |
Timeout condition. |
Truncated |
The text is truncated. |
This sample copies all the text on a screen to the clipboard. You can test it by runninng it and then pasting the text in the clipboard into a text editor.
Sub CopyScreen()
'Select all the text
ThisScreen.SelectAll
'Copy the selected text to the clipboard
ThisScreen.Copy
End Sub