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

find the contents of the clipboard

Status
Not open for further replies.

Guest_imported

New member
Joined
Jan 1, 1970
Messages
0
is it possible to make a search based on a sstring that has been copied (on the clipboard). Basically it will do the equivalent of ctrl+f, Ctrl+v, enter.

thanx
 
Sub ToClipboard(MyStr As String)
Dim DataIn As DataObject,
Set DataIn = New DataObject

With DataIn
.SetText MyStr
.PutInClipboard
End With

sub FromClipboard
Dim DataOut As DataObject
Set DataOut = New DataObject
With DataOut
.GetFromClipboard
MsgBox .GetText
End With
End Sub

HTH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top