Sebastiandiaz
Member
I am having some issues when copying and then pasting from excel. I have set some codes to copy from Textbox or Combobox. When I execute the code, it copies on the clipboard what I need, but when I paste it, it doesn´t work. It only pastes a couple of small squares " □ □ ". What should I do to fix this?
This is the code that I am using to copy to the clipboard.
>>> use code - tags <<<
I would appreciate it if you can help me to explain to me how to fix this issue. P.S: I am using Windows 10 and Office 2013
This is the code that I am using to copy to the clipboard.
>>> use code - tags <<<
Code:
Private Sub CommandButton2_Click()
With New MSForms.DataObject
.SetText TextBox1.Text
.PutInClipboard
End With
Unload Me
End Sub
I would appreciate it if you can help me to explain to me how to fix this issue. P.S: I am using Windows 10 and Office 2013
Last edited by a moderator: