Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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