Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

New Contributor II

Copying variable to Clipboard

I need to copy the contents of a variable to the clipboard within a QV app.  I can get the contents of the variable but afterwards I cannot get the text copied to the clipboard.  I have a button that executes the below macro.  The macro successfully retrieves the contents of the variable but everything I try cannot get the text of EmailAddresses copied to the clipboard.  All the examples I see use objects such as a table to get info to the clipboard like ActiveDocument.GetSheetObject("TX03").CopyTextToClipboard but i want to go straight from the variable to the clipboard.  I have allow export checked on the Security tab of the Document properties also.


sub CopyVariable

set EmailAddresses = ActiveDocument.GetVariable("EmailVariable")

'Now what do I do to get EmailAddress to the clipboard???

end sub