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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing copy of windows clipboard test into a variable

Status
Not open for further replies.

whathandle21

Programmer
Jan 27, 2009
1
Hi , I need to know how I can copy the contents of what is on the clipboard into a variable in VB . Please help.

Thanks
 
You can do it with a giant hack (as dilettante called it one time if I recall).
[tt]
with createobject("internetexplorer.application")
.navigate "about:blank"
sclpbrdtxt=.document.parentwindow.clipboarddata.getdata("text")
.quit
end with
'the result in sclpbrdtxt
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top