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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to export the variable in to excel?

Hi,

I have one problem. i have totasl 6 variable,can i export these varible in to excel excel using macro.

1 Reply
m_woolf
Master II
Master II

set v = ActiveDocument.Variables("YourVariable")
strYourVariable = v.Getcontent.String
Set XLApp = CreateObject("Excel.Application")
XLApp.Visible = True
Set XLWorkbook = XLApp.Workbooks.Add

Set XLSheet = XLWorkbook.sheets("Sheet1")
XLSheet.Select

XLSheet.Range("A1").Value = strYourVariable