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

Clipboard Object

Status
Not open for further replies.

chesterex

Technical User
Joined
May 23, 2001
Messages
4
Location
CA
Is it possible to treat the clipboard as an Object in VBA.
I know in VB6.0 you can simply write Clipboard.GetText and it gets the text from the clipboard. Is this possible in VBA?
Any help appreciated.
Thanks
Tim
 
Try this Code:

Sub GetFromClipboardToImmediateWindow()
Set MyData = New DataObject

MyData.GetFromClipboard
Debug.Print MyData.GetText(1)
End Sub

Assaf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top