Clipboard .SetText (method)

Syntax Clipboard.SetText data$ [,format]
Description Copies the specified text string to the Clipboard.
Comments The data$ parameter specifies the text to be copied to the Clipboard. The format parameter, if specified, must be 1 .
Example This example gets the contents of the Clipboard and uppercases it.
Sub Main()
If Not Clipboard.GetFormat(1) Then Exit Sub
Clipboard.SetText UCase(Clipboard.GetText(1)),1
End Sub
See Also Clipboard$ (statement); Clipboard.GetText (method); Clipboard$ (function).