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

generate several files to excel

Hello,

need to generate several files to Excel.

Let me explain: I have a file with the customers A, B, C and D.

so I want to create an excel file for each client.

You can do this via QlikView?

Sincerely,

Gleybson Fernandes

1 Solution

Accepted Solutions
Not applicable
Author

Good morning,

thank you all for your help, I solved the problem by reinstalling office.

Thanks,

Gleybson Fernandes

View solution in original post

9 Replies
swuehl
MVP
MVP

Gleybson,

I assume you want to call the export from your front end and not from the script, right?

You would probably need a macro for that to automate the export (you probably know how to select and export a table manually), maybe like described in this post:

http://community.qlik.com/message/59750

Hope this helps,

Stefan

Not applicable
Author

Hello Stefan,

I'm right with this post.

but I am having problem in 'Excel.Application'.

I have already put the option to allow access to the system but not resolved.

swuehl
MVP
MVP

You have Excel installed on your system, right?

If you export to Excel manually, e.g. by clicking on the caption icon on a table chart, does this work?

Do you get any error message or similar?

Not applicable
Author

Oh yes,

excel 2010

I am attaching the file.

is very simple.

swuehl
MVP
MVP

It worked on my site.

On opening of the application, I was asked to grant security access and selected the least strict level.

Then I ran Test in Module editor. I found four excel files a.xls,b.xls,c.xls,d.xls with restricted data to the selected  cod.

Maybe try to enable appropriate security settings in user settings - security (CreateObject).

Regards,

Stefan

Not applicable
Author

Stefan,

you know where I mean to change it to generate CSV?

that way I solve this problem.

swuehl
MVP
MVP

Sorry, you want to know how to export to csv or you already have done this and this solved your problem?

If first, I think you could do this with a code like

sub test

set Obj = ActiveDocument.GetSheetObject("304")

obj.Export "c:\Test.CSV",","

end sub

Regards,

Stefan

Not applicable
Author

Hi,

Please see the attached sample enhanced to export to CSV.

Cheers.

Not applicable
Author

Good morning,

thank you all for your help, I solved the problem by reinstalling office.

Thanks,

Gleybson Fernandes