Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
renjithpl
Specialist
Specialist

Save export file name with variable input

Hi All,

The below macro will export the object and save it in the defined location with the file name "abc"

Sub ExportExcel

set obj = ActiveDocument.GetSheetObject("CH646")

obj.ExportEx "C:\Documents and Settings\renjithpl\Desktop\QlikviewExport\abc.xls",5

End sub

My requirement is, i need to save the file name with variable input in my application

something like

obj.ExportEx "C:\Documents and Settings\renjithpl\Desktop\QlikviewExport\"$(vInput)".xls",5

Any help ??

Regards

Ranjit

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hi Ranjit,

Check this code and this code to get the values from variables in Macro and how to use it.

Hope that helps.

Miguel

View solution in original post

2 Replies
Miguel_Angel_Baeyens

Hi Ranjit,

Check this code and this code to get the values from variables in Macro and how to use it.

Hope that helps.

Miguel

renjithpl
Specialist
Specialist
Author

Hi Miguel,

this is what i was expecting. thanks a lot.

vFile = ActiveDocument.Variables("vDate2").GetContent.String

XLDoc.SaveAs "c:\Qlikview\Claro"& vFile &".xls"