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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
camilo
Contributor III
Contributor III

How to adjust an excel fileld when exporting data

Hi, I´m using a macro to export data to excel but the headers wont fit on the excel field ¿is there any way to adjust the excel field in the macro (high)?

This is the Macro:

Sub Export6

set ZonaListbox = ActiveDocument.GetSheetObject("LB08")

    Zona=ZonaListbox.GetPossibleValues

for zonacounter = lbound(Zona) to ubound(Zona) 

ActiveDocument.Fields("Zona_Nueva").Select Zona(Zonacounter)

file="C:\Users\"&"ACU - Zona - " & Zona(Zonacounter) & ".xls"

set Chart2Export = ActiveDocument.GetSheetObject("CH25")

Chart2Export.ExportBiff file

Next

ActiveDocument.ClearAll false

MsgBox "Exports Done!"

End Sub

Thanks,

Camilo

0 Replies