Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Using agrument in Sub as Table name

Hi All,

I am writing a sub to import data.

However, instead of pre defining the name of the table, i would like to make it a specified field.

i.e.:

sub Import(Dir,Table_Name)

     Table_Name:

          Load * ...

     From filelist( Dir& '/*.xlsx')

However, the table will always be named "Table_Name" no matter what string i used in the argument.

Please kindly advise.

Thanks!

Cheers,

GH

Labels (1)
1 Reply
sebastianlettner
Partner - Creator
Partner - Creator

Hi,

use

$(Table_Name):

LOAD

     ...

Regards

Sebastian Lettner