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

How can I paste a text from the clipboard into a textbox?

Status
Not open for further replies.

JensKKK

Technical User
May 8, 2007
119
GB
So far I have not tried anything.

What I want to do is to paste a text into a textbox and than format the text.

I not sure but maybe I need a command that can convert the clipboard information into a string and then assign the string to to the textbox.text=string.

Any help is appreciated.



 
OK this what I found on the WWW.

Dim strclip As String
Dim mydata As DataObject
Set mydata = New DataObject
mydata.GetFromClipboard
strclip = mydata.GetText
Input_help.TextBox1.Text = strclip
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top