Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Exporting to Excel

Hi all, I still feel new to Qlikview even though I have been working with it for a couple months. Does anyone know if I can use the functionality behind the 'XL' (Export to Excel located at the top left of a chart) in a command button? In a nutshell, I want to create a command button that 'Select in Field,' and then drops the beautiful data format obtain from the 'XL.' The idea behind my request is for non-technical, high-level users of data to click on the sheet, and download a report for their division. The export to excel macros I found in the community do not run or run correctly due to restrictions on the computer, but the 'XL' works wonderfully. Thank you in advance. Don the intern

1 Solution

Accepted Solutions
Not applicable
Author

Take a look at the attached example and see if it is what you had in mind. Under Tool > Edit Module, ensure that you have 'System Acces' selected under 'Requested Module Security' and 'Allow System Access' selected under 'Current Local Security' before clicking the 'Export to Excel' button. This is probably why your macros weren't running before.

View solution in original post

7 Replies
Not applicable
Author

Take a look at the attached example and see if it is what you had in mind. Under Tool > Edit Module, ensure that you have 'System Acces' selected under 'Requested Module Security' and 'Allow System Access' selected under 'Current Local Security' before clicking the 'Export to Excel' button. This is probably why your macros weren't running before.

Not applicable
Author

Excellent, thank you so much!

qlikviewforum
Creator II
Creator II

I want to export the same into txt after getting exported to excel. Could you please help me out for the same please?

Not applicable
Author

Try something like this. I am not sure if you data will be compatible as a text file with this or not, but give it a shot. We can always tweak it if it doesn't work.

qlikviewforum
Creator II
Creator II

Thanks for your help! Can the text files be saved automatically through macro without the need of users. As we want this to be automated without the need of users.

Not applicable
Author

You can set the macro to run as a trigger in Document Properties.  For example, you can set the action to run the macro on every reload.

pnn44794
Partner - Specialist
Partner - Specialist

Hello Rebecca:

Nice work.  Is there a way to make this run on OnPostReload trigger and to go to a specified location, i.e. to server in a particular folder?  If yes, how would the code need to be tweaked?  I'm also guessing the filename would need to be unique each time like with a data appended.  Thanks in advance.