Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Clear clipboard

Does anyone know how to clear the clipboard after you copy a table? I am using:

ActiveDocument.GetSheetObject("CH09").CopyTableToClipboard true

XLDoc.Sheets(1).Paste()

But now I need to clear the clipboard and copy a different object. Help?

Labels (1)
2 Replies
Anonymous
Not applicable
Author

I don't think there's a direct approach to clearing the clipboard using vbscript.

Why don't you just copy the next object and it will overwrite CH09 on the clipboard?

Not applicable
Author

That's what is weird. When I copy the next object, it doesn't override the last object and pastes the original object instead. The only solution I can think is to somehow clear the clipboard or use two macros, which I would prefer to avoid.