Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Friends,
I want to export the file to default location where Qlikviewfile is located i have written a code as following
Sub TabDelimitedTextGroup1
set obj1 =ActiveDocument.GetSheetObject("CH20")
obj1.Export "D:\MYfile\E.A.T 2\Group1\"&Date()&"_"&replace(Time(),":","")&".txt",","
MsgBox("DataHas Been Transfered")
End Sub
but it works on my machine
I want to set a default location where Qlikview file islocated no matter which machine it is used.
I hope some 1 can help me
HI,
There is a variable in qlikview which stores the path of the application i.e. QvWorkPath
Use this variable in your macro. Something like this.
Sub TabDelimitedTextGroup1
Set Var = ActiveDocument.GetVariable("QvWorkPath")
set obj1 =ActiveDocument.GetSheetObject("CH20")
obj1.Export Var.GetContent.String&"\"&Date()&"_"&replace(Time(),":","")&".txt",","
MsgBox("DataHas Been Transfered")
End Sub
Regards,
Kaushik Solanki
HI,
There is a variable in qlikview which stores the path of the application i.e. QvWorkPath
Use this variable in your macro. Something like this.
Sub TabDelimitedTextGroup1
Set Var = ActiveDocument.GetVariable("QvWorkPath")
set obj1 =ActiveDocument.GetSheetObject("CH20")
obj1.Export Var.GetContent.String&"\"&Date()&"_"&replace(Time(),":","")&".txt",","
MsgBox("DataHas Been Transfered")
End Sub
Regards,
Kaushik Solanki
Hi,
use obj1.ServerSideExport instead of Normal Export
Thank you very much Koushik .