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: 
rneelakantam
Partner - Contributor
Partner - Contributor

Execute Qlik Code stored in Excel

Hi All,

I have my Qlik code store in Excel. Now i want to load from excel and execute the code in Qlik.

Note : I cant store the code in txt or qvs file and use include script

 

Thanks in Advance

2 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

When you say "code", do you mean load script?

-Rob

LReeve
Contributor III
Contributor III

Assuming you are storing your load script in a single cell then you should be able to do this:

LOAD
"Script"
FROM [lib://Downloads/DataLoad.xlsx]
(ooxml, embedded labels, table is Sheet1);

Let vScript = Peek('Script');

$(vScript);

Drop Table Sheet1;

 

If each line of the script is in a new Excel row you should be able to do something like (untested):

LOAD
Concat("Script"&chr(10))
FROM [lib://Downloads/DataLoad.xlsx]
(ooxml, embedded labels, table is Sheet1);