ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   clear the clipboard? (https://www.excelbanter.com/excel-programming/300692-clear-clipboard.html)

scottnshelly[_36_]

clear the clipboard?
 
Hey,
i need to have a code that will empty my clipboard. any suggestions?
i got as far as application.clipboardformats....
Thank

--
Message posted from http://www.ExcelForum.com


Vasant Nanavati

clear the clipboard?
 
From Chip Pearson:

http://www.cpearson.com/excel/clipboar.htm

Public Sub ClearClipboard()
Dim MyDataObj As New DataObject
MyDataObj.SetText ""
MyDataObj.PutInClipboard
End Sub

If you just want to clear the clipboard of stuff that you've put there using
Excel's Copy function, you can simply use:

Application.CutCopyMode = False

--

Vasant

"scottnshelly " wrote in
message ...
Hey,
i need to have a code that will empty my clipboard. any suggestions?
i got as far as application.clipboardformats....
Thanks


---
Message posted from http://www.ExcelForum.com/





All times are GMT +1. The time now is 09:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com