Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Export To Excel SHEETS

Hello Everybody

That is my first post on the forum. I read a lot of other post about this topic but i did not find the expected information.

I want to export my active selection to excel. I mean, i have a table (country) and i want to export all the voices (italy,france german ...) in different sheets in excel,and the sheets have to have the name of the country

Does someone help me?

thanks in advance

8 Replies
bbi_mba_76
Partner - Specialist
Partner - Specialist

Not applicable
Author

hi! not exactly.

i need to export from a table, all its fields.

so, i have an excel file with 3 sheets:

sheet 1 for italy

sheet 2 for france

sheet 3 for german

sheet n for ....

italy, german and france are in the same tab. In your link, u export different object in different sheets

I should export the fields that are in the same tab

bbi_mba_76
Partner - Specialist
Partner - Specialist

Hi,

it is quite similar: you have to loop for each value of the country fields and then export the same objects in a new sheet. Maybe you could also see this docs

http://community.qlik.com/docs/DOC-3481

Loop Charts and Field Values - Excel Export Macro

bbi_mba_76
Partner - Specialist
Partner - Specialist

Attached a simple doc with the export in excel, using the macro in the doc

Not applicable
Author

Ciao Michele.

Sono riuscito ad esportare correttamente quello che mi serviva.

ora sono interessato a fare un'altra operazione.

Ho un campo che indica tutte le regioni.

Ho un campo che indica tutti i paesi delle rispettive regioni.

Mi servirebbe un'esportazione che mi creerebbe 1 file excel per ogni regione, e all'interno di questo file, tutti i paesi della regione.

Quindi in totale dovrei avere 20 file excel. Puoi aiutarmi?

bbi_mba_76
Partner - Specialist
Partner - Specialist

Ciao,

ho fatto un paio di modifiche ma ho usato la stessa sub.

In pratica ho aggiunto una sub che fa un loop sul campo country e invoca la precedente.

Ciao

Not applicable
Author

grazie mille per la risposta.

Quando apro il tuo file qvw, e faccio partire l'esportazione, non succede nulla.

Si apre solo il file excel, ma non avviene alcuna esportazione.

(Nella pagina modifica modulo, è selezionata la voce "consenti l'accesso al sistema")

bbi_mba_76
Partner - Specialist
Partner - Specialist

a me crea un file con il foglio CH01-London

comunque ho dimenticato di mettere una clear all alla fine della sub loopXls

    ActiveDocument.Fields("Country").Clear

eventualmente prova a riprendere la tua versione e aggiungere la sub loopXls