Clipboard $ (statement)

Syntax

Clipboard$ NewContent$

Description

Copies NewContent$ into the Clipboard.

Example

This example puts text on the Clipboard, displays it, clears the Clipboard, and displays the Clipboard again.

Const crlf = Chr$(13) + Chr$(10)

Sub Main()

  Clipboard$ "Hello out there!"
  MsgBox "The text in the Clipboard is:" & crlf & Clipboard$
  Clipboard.Clear
  MsgBox "The text in the Clipboard is now:" & crlf & Clipboard$
End Sub

See Also

Clipboard$ (function); Clipboard.GetText (method); Clipboard.SetText (method).

More information

C