Anyone know how you copy something from a label to a clipboard. (The Ctrl + C) ? I think its called clipboard... =)
//Thanks in advance
//Thomas
Printable View
Anyone know how you copy something from a label to a clipboard. (The Ctrl + C) ? I think its called clipboard... =)
//Thanks in advance
//Thomas
...:wave:Code:Private Sub Command1_Click()
Clipboard.SetText Label1.Caption
End Sub
Thank you akhil =) Youre allways here =)
You're welcome...:wave:
for some reason it only worked first time. after that it doesnt change as i press the button...
i got the code in label1.click if that makes any diffrent.
Try this:
...:wave:Code:Private Sub Label1_Click()
Clipboard.Clear '~~~ This will clear the clipboard contents
Clipboard.SetText Label1.Caption '~~~ Copies the caption to the Clipboard
End Sub
thank you that works perfect =)
Thanks for marking this resolved =)
You're welcome....:wave: