Hi,
I would like to have a code that copies a string to the windows clipboard using VBA. So i can paste the clipboard to other software then excel.
My code is now the following:
If I test the code it works for me, but could you check it and make changes if this code is not how it SHOULD be.
Thank you!
I would like to have a code that copies a string to the windows clipboard using VBA. So i can paste the clipboard to other software then excel.
My code is now the following:
VBA Code:
Dim strText As String
strText = FilePath
With New DataObject
.SetText strText
.PutInClipboard
End With
If I test the code it works for me, but could you check it and make changes if this code is not how it SHOULD be.
Thank you!