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

excel sheets

Hi,

i had a excel file with 4 sheets.

but how to pulling all sheets into qlikview at a time ?

below my excel file is attached.

can u plz share with qvw

6 Replies
Not applicable
Author

Hi your excel file is not attached but you can just pull data sheet by sheet and do a concatenate.

regards,

MT

ThornOfCrowns
Specialist II
Specialist II

A good example for you is:

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

Not applicable
Author

You can do it using a for loop.

PFA the sample document.

Not applicable
Author

Hi,

You can use this script

for i=1 to 4

LOAD *

FROM

D:\Vivek\Community\date.xlsx

(ooxml, embedded labels, table is Sheet$(i));

next i

Regards,

Vivek

amit_saini
Master III
Master III

amit_saini
Master III
Master III

Hi Anil,

You have to create those sheet as 1,2,3..... . Please follow these step below:

Step 1. press Alt F11, double click on any sheets in the left of the opened window and copy the below code as shown in the below picture.

Sub renameSheets()
Dim iSheetCount
For iSheetCount = 1 To Sheets.Count
Sheets(iSheetCount).Name = iSheetCount
Next iSheetCount
End Sub

Step2:

Then run by clicking the run button like below

 

Step3:

Save as the file in xlsx fomat.

Step4:

Then Open the Qlikview file, Press Cntrl E, go to the code marked in red as shown in the below picture and change the number as equal to the sheets available in the file “Name of your Excel sheet” after running the macro. Assuming the file contain 290 sheets.
Eg. for loop=1 to 290 

 

Step5:

Reload Qlikview



Hope this will help you.


Thanks,

AS