Object Model Reference : Classes : C : Clipboard : Methods : Clipboard.Clear |
Sub Clear()
Member of Clipboard
The Clear method removes any and all data from the system Clipboard. The Clipboard should be cleared after large files, no longer needed, are pasted into a document. Clearing the Clipboard of these large files frees up any system resources that the file is currently using in the Clipboard.
The following VBA example pastes the current contents of the system Clipboard in the active document and uses the Clear method to remove the data from the Clipboard.
Sub ClipboardClear() |
ActiveLayer.Paste |
Clipboard.Clear |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.