
Clipboard not being cleared.
Good day to all.
One of my users reported to me that when data has been copied to the
clipboard, it retain the datas into it. Here is my code:
Private Sub cmdCopy()
Set clipData = New DataObject
DoEvents
clipData.Clear
DataToCopy = "This is my text"
clipData.SetText DataToCopy, 1
clipData.PutInClipboard
End Sub
But this data will remain in the clipboard and if I select another data
string and put it in the clipboard it will be appended to the previous
DataToCopy. How can I prevent that ?? It doesn"t seem to clear even though
the clipdata.clear has been added to the beginning of the procedure.
Awaiting your feedback.
Regards
--
Daniel Caron