I was currently trying to delete my clipbaord because it copies a lot of data and it has slowed down the macro a bit.
I have tried with the following code but it is not working
PHP Code:
Public Declare Function OpenClipboard Lib "user32" (ByVal hwnd As Long) As Long Public Declare Function EmptyClipboard Lib "user32" () As Long Public Declare Function CloseClipboard Lib "user32" () As Long
Sub ClearClipboard() OpenClipboard (0&) EmptyClipboard CloseClipboard End Sub
PHP Code:
application.cutcopymode=false
on the other just deactivates it which I dont want. Any ideas from your side.
Thanks in advance
If you are talking about the Office clipboard, as opposed to the Windows clipboard, then the API functions won't work.
If possible you should do your copy/paste in one line, using the Destination argument of the copy method.
Bookmarks