Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi guys,
Just wanna ask on how to load excel file to qlikview excluding one/several sheets. See example below.
Sheet names: Master File, Product 1, Product 2, Product 3, Product 4.
From the given sheet names, I want to load the excel file EXCEPT sheet name: Master File.
Please help me get over this. Thanks.
Best regards,
Bill
Hi,
In that script, you can change this line:
IF wildmatch('$(sheetName)', 'Sales*') THEN // Only sheetNames that begin "Sales"
to
IF not(wildmatch('$(sheetName)', 'Master File*')) THEN // All sheetNames that are not Master File
Hope this helps,
Erich
Hi,
You can use the following file as a solution.
There you have to define the name of the sheets to load in the script.
If you want to load Except 'Master File' Sheet, you can use the following coding.
for each vSheetNames in 'Product1$', 'Product2$', 'Product3$', 'Product4$'
Load Statement....
Next
Hope this helps
Regards
Andrew Hudson
Hi,
if you are using QV on a win32bit environment (where you can use OLE Jet), you can use the example posted by Celabarasan: http://community.qlik.com/message/195769#195769
You just need to adapt the script to read tables that start with 'Product*'
Hope this helps,
Erich
These are possible sheetnames (and there's no definite number of sheets, it can be more than 10, or less than 10.) Only sheetname of sheet1 is fixed.
POSSIBLE SHEETNAMES
And etcetera
Hi,
In that script, you can change this line:
IF wildmatch('$(sheetName)', 'Sales*') THEN // Only sheetNames that begin "Sales"
to
IF not(wildmatch('$(sheetName)', 'Master File*')) THEN // All sheetNames that are not Master File
Hope this helps,
Erich