Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Highlighted
Not applicable

Macro for copy objects

Hi guys,

I need to write a macro to copy a chart object to clipboard.

Can you guys please help me with it?

Saurabh

Tags (4)
19 Replies
venkatg6759
Contributor III

Re: Macro for copy objects

Sub CopyCC

ActiveDocument.GetSheetObject("CH01").CopyBitmapToClipboard

End sub

Not applicable

Re: Macro for copy objects

CopyBitmapToClipBoard () copies chart object or the image of it?

because i need the chart object so that i can do paste in other sheet..

venkatg6759
Contributor III

Re: Macro for copy objects

You can right click on sheet object and copy to clipboard and select object and

paste it in another sheet.

venkatg6759
Contributor III

Re: Macro for copy objects

check in layout of that object if Allowcopy/clone is ticked.

Not applicable

Re: Macro for copy objects

Hi Venkat,

My requirement is to to do using Macros. Is there any way?

Saurabh

MVP & Luminary
MVP & Luminary

Re: Macro for copy objects

ActiveDocument.GetSheetObject("CH01").WriteXmlPropertiesFile("myobj.xml")

CreateObjectFromXmlPropertiesFile("myobj.xml")


-Rob

maiconmello
Contributor III

Re: Macro for copy objects

@RobWunderlich, I need create this object in the new sheet. You can help me ?

MVP & Luminary
MVP & Luminary

Re: Macro for copy objects

When on the new sheet, run the macro that executes:

CreateObjectFromXmlPropertiesFile("myobj.xml")


-Rob

maiconmello
Contributor III

Re: Macro for copy objects

Rob, but have this is erro  :incompatible types 'CreateObjectFromXmlPropertiesFile'