I am working on a Userform. I assigned your code suggestion to a command button. I get nothing in my copy buffer. The TextBox1 is populated with text. I go to NotePad and attempt to past and it has nothing. I'm working with Windows 10 and Office 2016 (Excel) using the VBA editor 7.1.
If your TextBox is on a UserForm, then you can use an event procedure something like this...
Code:
Private Sub CommandButton1_Click()
Dim objData As New MSForms.DataObject
objData.SetText TextBox1.Text
objData.PutInClipboard
End Sub
I am using XL2010 on Windows 8.1, so I cannot test what you are telling me, but to the best of my knowledge, the DataObject has not changed and so the code should have worked. Perhaps someone else with your setup will test my code and report back to this thread with their findings.