' Clean up ' xlWB.SaveAs "C:\Temp\test.xlsx" ' xlWB.Close ' xlApp.Quit
regsvr32 "C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE" Here's a complete feature that exports a VB6 DataGrid or FlexGrid to Excel 16.0: microsoft excel 16.0 object library download vb6
xlApp.Visible = True
' Error handling On Error GoTo ErrorHandler ' Clean up ' xlWB
' Make Excel visible (optional) xlApp.Visible = True microsoft excel 16.0 object library download vb6