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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Export to excel w/ macro

I'm exporting one object to excel with this

sub ChartToEXCEL 

    set obj = ActiveDocument.GetSheetObject("GR") 

    obj.ExportEx "E:\QlikView\DESA\APP\TABLA2.XLS", 5

end sub 

To Sheet 1

Now i'd like to export 2 objects to the same excel, to sheet 1 and sheet 2

How can i do this?

Thanks

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

8 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See this blog post: QlikTip #32: Exporting multiple QV objects to a single Excel document


talk is cheap, supply exceeds demand
Not applicable
Author

Thank you this is useful

but i'd like to save the excel, i mean export and save

not only export

regards

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

And what's stopping you?


talk is cheap, supply exceeds demand
Not applicable
Author

How do i do that?

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Do what?


talk is cheap, supply exceeds demand
Not applicable
Author

I want to save the excel in the macro, not only export.

With this macro i am only exporting it.

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Then add a line to the macro code that saves the document.  Just like the blog post says:

36'// Now either just leave Excel open or do some other stuff here
37'// like saving the excel, some formatting stuff, ...

It's just vbscript. The internet is full of it. objExcelWorkbook.save or something like it. Have a google. Or hire a programmer if you want to be lazy.


talk is cheap, supply exceeds demand
ElizaF
Creator II
Creator II

Hi Jeremias,

See the macro code used here: Export to Excel for each dimension value as separate sheet

Also, you can find many information about macros in : Useful Qlikview Macros

Regards,

Eliza