Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Qlikview 9 Excel Export

Hello Experts,

i need to run my qlikview script every night. In this qlikview script i want to export an qlikview object(table) to excel.

So when i run my script an excel export shoulld happen with data from load in the forst step.

In my script i load my data first. Then i combine my loaded data and want to export the data to excel in the last step. How can i do this? I have tried something, but without success???

I think this is possible?

I use Qlikview version 9.could anybody post some example script code?

regards

Chrisp

1 Solution

Accepted Solutions
Not applicable
Author

I finished it. i have  sheduled a task a windows task to open the qlikviw document daily. When the documents open, the script is running to get the data. After running the script the macro is excecuted, which is doing the excel download. I hope this helps somebody with related issues    

View solution in original post

4 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Chrisp

If you can live with a CSV export rather than an XLS export, then simply use in your script:

STORE ExportTable Into MyExport.csv (txt);

Where ExportTable is the table to export. Excel will open the CSV file just by double clicking on it. Exporting to XLS is more tricky.

Hope that helps

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

hello,

you have an object  in your tab and you want to export into txt,csv,ecc-

you write this macro

sub export

set obj = ActiveDocument.GetSheetObject("CH01")

obj.ExportEx "\\share\nomeFile.txt", 1, true .

end sub

then Document Properties/ Trieggers/Document Event Triggers , select OnPostReload ad  add macro .

So every time you reaload your document , you create a file txt,csv,ecc

God Night

Not applicable
Author

Hello,

i have write a macro to do the excel upload. it works with a button. i also add the macro at Properties/ Trieggers/Document Event Triggers , select OnPostReload

Server Settings reload.jpg

Server Settings preload.jpg

status.jpg

then i have enabled the reload shedule

in the qlikview script i get the data and consolidate the date in an object. The excel export macro export the data of the object to excel. 

í dont want to open the qlikview document manually. Every night it should run the script to get the data and the start the excel download. All these steps need to do at night. So in the morning i want to see the updated excelsheet.

I have qlikview 11 and Qlikview Server.

what are further nessesary steps?

Could anybody help?

Not applicable
Author

I finished it. i have  sheduled a task a windows task to open the qlikviw document daily. When the documents open, the script is running to get the data. After running the script the macro is excecuted, which is doing the excel download. I hope this helps somebody with related issues