Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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