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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
amars
Specialist
Specialist

Opening an excel document

Hi all,

I am exporting an excel sheet using a macro like this

set obj = ActiveDocument.GetSheetObject(ExcelID)

obj.ExportBiff reportFile & ".xls"

reportFile = reportFile & ".xls"

I want to open the excel file after it is being exported. How to do it in a macro?
Thanks in advance
Regards
Amar


1 Reply
biester
Specialist
Specialist

Hy amar,

you could do it this way:

Set objExcel = CreateObject("EXCEL.APPLICATION")
Set objWorkBook = objExcel.Workbooks.Open(reportFile)
objExcel.Visible = True

Rgds,
Joachim