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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
dradoikov
Partner - Contributor III
Partner - Contributor III

Running macro function in the loading script

Hello,


I have got the following problem: I want to export tables from the loading script and I am using macro function in the module:

function Export()

set qv = CreateObject("QlikTech.QlikView")

set doc = qv.OpenDoc("C:\Users\username\Desktop\ARP.qvw")

set chart = doc.GetSheetObject("CH09")

    chart.Export "D:\Data.txt", ", "

'doc.CloseDoc

'qv.Quit

end function

I cannot call it from the loading script.

Any advice is welcome.

Regards,

Daniel

Labels (1)
1 Reply
marcus_sommer
MVP
MVP

It's not possible on this way. You will need to do it from outside of a load, see also: Macro running through load script or you could use a store-statement to an existing table to get the txt-file.

- Marcus