Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pass the contents of the clipboard to a variable

Status
Not open for further replies.

scottian

Programmer
Jul 3, 2003
955
0
0
GB
how do i pass the contents of the clipboard to a variable and hen write to a text file?

any help, much appreciated in advance

"My God! It's full of stars...
 

This will load the contense of the windows clipboard in to the variable called ClipboardText.

ClipboardText = (Trim(Clipboard.Gettext))

use Clipboard.clear to empty the windows clipboard.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top