<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Exporting multiple objects to multiple Excel sheets in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exporting-multiple-objects-to-multiple-Excel-sheets/m-p/1314213#M619175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I already did that. I had 14, this is the only one left. This is where it fails.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Mar 2017 19:37:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-03-30T19:37:44Z</dc:date>
    <item>
      <title>Exporting multiple objects to multiple Excel sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-multiple-objects-to-multiple-Excel-sheets/m-p/1314211#M619173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to implement the code from qlikblog_ExportToMultipleExcelSheets.qvw; and couldn't get it to run. I wound up putting in 14 msgbox commands along the entire code until I could get it working by process of elimination. I was able to get it down to where msgbox "2" was. When I run the macro, it works perfectly if I leave msgbox "2" in the code, and press OK when the box comes up. But when I comment out msgbox "2", the code breaks and the macro fails. It just stops and opens the module window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone see a reason why this would be occurring where the msgbox command is? Unfortunately due to confidentiality of data, I cannot attach the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub exportToExcel_Variant2&lt;BR /&gt; &lt;BR /&gt; '// Array for export definitions&lt;BR /&gt; Dim aryExport(5,3)&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; aryExport(0,0) = "objRanking"&lt;BR /&gt; aryExport(0,1) = "Ranking-Screening"&lt;BR /&gt; aryExport(0,2) = "A1" &lt;BR /&gt; aryExport(0,3) = "data"&lt;BR /&gt; &lt;BR /&gt; aryExport(1,0) = "objNomem" &lt;BR /&gt; aryExport(1,1) = "Nomem" &lt;BR /&gt; aryExport(1,2) = "A1"&lt;BR /&gt; aryExport(1,3) = "data"&lt;BR /&gt; &lt;BR /&gt; aryExport(2,0) = "objNotif" &lt;BR /&gt; aryExport(2,1) = "M6 Notification" &lt;BR /&gt; aryExport(2,2) = "A1"&lt;BR /&gt; aryExport(2,3) = "data"&lt;BR /&gt; &lt;BR /&gt; aryExport(3,0) = "objFAD" &lt;BR /&gt; aryExport(3,1) = "FAD" &lt;BR /&gt; aryExport(3,2) = "A1"&lt;BR /&gt; aryExport(3,3) = "data"&lt;BR /&gt; &lt;BR /&gt; aryExport(4,0) = "objRun" &lt;BR /&gt; aryExport(4,1) = "Run History" &lt;BR /&gt; aryExport(4,2) = "A1"&lt;BR /&gt; aryExport(4,3) = "data"&lt;BR /&gt; &lt;BR /&gt; aryExport(5,0) = "objZJAM" &lt;BR /&gt; aryExport(5,1) = "ZJAM" &lt;BR /&gt; aryExport(5,2) = "A1"&lt;BR /&gt; aryExport(5,3) = "data"&lt;BR /&gt; &lt;BR /&gt; Dim objExcelWorkbook 'as Excel.Workbook&lt;BR /&gt; Set objExcelWorkbook = copyObjectsToExcelSheet(ActiveDocument, aryExport)&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; '// Now either just leave Excel open or do some other stuff here&lt;BR /&gt; '// like saving the excel, some formatting stuff, ...&lt;BR /&gt; &lt;BR /&gt; end sub&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; Private Function copyObjectsToExcelSheet(qvDoc, aryExportDefinition) 'as Excel.Workbook&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; Dim i 'as Integer&lt;BR /&gt; Dim objExcelApp 'as Excel.Application&lt;BR /&gt; Dim objExcelDoc 'as Excel.Workbook&lt;BR /&gt; &lt;BR /&gt; Set objExcelApp = CreateObject("Excel.Application")&lt;BR /&gt; &lt;BR /&gt; objExcelApp.Visible = true 'false if you want to hide Excel&lt;BR /&gt; objExcelApp.DisplayAlerts = false&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="color: #ff0000;"&gt; msgbox "2" &lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; Set objExcelDoc = objExcelApp.Workbooks.Add&lt;BR /&gt; &lt;BR /&gt; Dim strSourceObject&lt;BR /&gt; &lt;BR /&gt; Dim qvObjectId 'as String &lt;BR /&gt; Dim sheetName&lt;BR /&gt; Dim sheetRange&lt;BR /&gt; Dim pasteMode&lt;BR /&gt; Dim objSource&lt;BR /&gt; Dim objCurrentSheet&lt;BR /&gt; Dim objExcelSheet&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; for i = 0 to UBOUND(aryExportDefinition)&lt;BR /&gt; &lt;BR /&gt; '// Get the properties of the exportDefinition array&lt;BR /&gt; qvObjectId = aryExportDefinition(i,0)&lt;BR /&gt; sheetName = aryExportDefinition(i,1)&lt;BR /&gt; sheetRange = aryExportDefinition(i,2)&lt;BR /&gt; pasteMode = aryExportDefinition(i,3)&lt;BR /&gt; &lt;BR /&gt; Set objExcelSheet = Excel_GetSheetByName(objExcelDoc, sheetName)&lt;BR /&gt; if (objExcelSheet is nothing) then&lt;BR /&gt; Set objExcelSheet = Excel_AddSheet(objExcelApp, sheetName)&lt;BR /&gt; if (objExcelSheet is nothing) then&lt;BR /&gt; msgbox("No sheet could be created, this should not occur!!!")&lt;BR /&gt; end if&lt;BR /&gt; end if&lt;BR /&gt; &lt;BR /&gt; objExcelSheet.Select&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; set objSource = qvDoc.GetSheetObject(qvObjectId)&lt;BR /&gt; Call objSource.GetSheet().Activate()&lt;BR /&gt; objSource.Maximize&lt;BR /&gt; qvDoc.GetApplication.WaitForIdle&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; if (not objSource is nothing) then&lt;BR /&gt; &lt;BR /&gt; if (pasteMode = "image") then&lt;BR /&gt; Call objSource.CopyBitmapToClipboard()&lt;BR /&gt; else&lt;BR /&gt; Call objSource.CopyTableToClipboard(true) '// default &amp;amp; fallback&lt;BR /&gt; end if&lt;BR /&gt; &lt;BR /&gt; Set objCurrentSheet = objExcelDoc.Sheets(sheetName)&lt;BR /&gt; objExcelDoc.Sheets(sheetName).Range(sheetRange).Select&lt;BR /&gt; objExcelDoc.Sheets(sheetName).Paste&lt;BR /&gt; &lt;BR /&gt; if (pasteMode &amp;lt;&amp;gt; "image") then&lt;BR /&gt; With objExcelApp.Selection&lt;BR /&gt; .WrapText = False&lt;BR /&gt; .ShrinkToFit = False&lt;BR /&gt; End With&amp;nbsp; &lt;BR /&gt; end if&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; objCurrentSheet.Range("A1").Select&amp;nbsp; &lt;BR /&gt; end if&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; next &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; Call Excel_DeleteBlankSheets(objExcelDoc)&lt;BR /&gt; &lt;BR /&gt; '// Finally select the first sheet&lt;BR /&gt; objExcelDoc.Sheets(1).Select&lt;BR /&gt; &lt;BR /&gt; '// Return value&lt;BR /&gt; Set copyObjectsToExcelSheet = objExcelDoc&lt;BR /&gt; &lt;BR /&gt; end function&lt;BR /&gt; '// ________________________________________________________________&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; '// ****************************************************************&lt;BR /&gt; '// Internal function for getting the Excel sheet by sheetName&lt;BR /&gt; '// ****************************************************************&lt;BR /&gt; Private Function Excel_GetSheetByName(ByRef objExcelDoc, sheetName) 'as Excel.Sheet&lt;BR /&gt; &lt;BR /&gt; For Each ws In objExcelDoc.Worksheets&lt;BR /&gt; If (trim(ws.Name) = Excel_GetSafeSheetName(sheetName)) then&lt;BR /&gt; Set Excel_GetSheetByName = ws&lt;BR /&gt; exit function&lt;BR /&gt; End If&lt;BR /&gt; Next&lt;BR /&gt; &lt;BR /&gt; '// default return value&lt;BR /&gt; Set Excel_GetSheetByName = nothing&lt;BR /&gt; &lt;BR /&gt; End Function&lt;BR /&gt; '// ________________________________________________________________&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; Private Function Excel_GetSafeSheetName(sheetName)&lt;BR /&gt; &lt;BR /&gt; '// can be max 31 characters long&lt;BR /&gt; retVal = trim(left(sheetName, 31))&lt;BR /&gt; &lt;BR /&gt; Excel_GetSafeSheetName = retVal&lt;BR /&gt; End Function&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; '// ****************************************************************&lt;BR /&gt; '// Internal function for adding a new sheet&lt;BR /&gt; '// ****************************************************************&lt;BR /&gt; Private Function Excel_AddSheet(objExcelApplication, sheetName) ' as Excel.Sheet&lt;BR /&gt; &lt;BR /&gt; '// add a sheet to the last position&lt;BR /&gt; objExcelApplication.Sheets.Add , objExcelApplication.Sheets(objExcelApplication.Sheets.Count)&lt;BR /&gt; &lt;BR /&gt; Dim objNewSheet&lt;BR /&gt; Set objNewSheet = objExcelApplication.Sheets(objExcelApplication.Sheets.Count)&lt;BR /&gt; objNewSheet.Name = left(sheetName,31)&lt;BR /&gt; &lt;BR /&gt; '// return the newly created sheet&lt;BR /&gt; Set Excel_AddSheet = objNewSheet&lt;BR /&gt; &lt;BR /&gt; End function&lt;BR /&gt; '// ________________________________________________________________&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; '// ****************************************************************&lt;BR /&gt; '// Delete all empty sheets&lt;BR /&gt; '// ****************************************************************&lt;BR /&gt; Private Sub Excel_DeleteBlankSheets(ByRef objExcelDoc) &lt;BR /&gt; &lt;BR /&gt; For Each ws In objExcelDoc.Worksheets&lt;BR /&gt; If (not HasOtherObjects(ws)) then&lt;BR /&gt; If objExcelDoc.Application.WorksheetFunction.CountA(ws.Cells) = 0 Then&lt;BR /&gt; On Error Resume Next&lt;BR /&gt; Call ws.Delete()&lt;BR /&gt; End If&lt;BR /&gt; End If&lt;BR /&gt; Next &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; End Sub &lt;BR /&gt; '// ________________________________________________________________&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; '// ****************************************************************&lt;BR /&gt; '// Helper function to determine if there are other objects placed&lt;BR /&gt; '// on the sheet ...&lt;BR /&gt; '// ****************************************************************&lt;BR /&gt; Public Function HasOtherObjects(ByRef objSheet) 'As Boolean &lt;BR /&gt; Dim c&lt;BR /&gt; If (objSheet.ChartObjects.Count &amp;gt; 0) Then&lt;BR /&gt; HasOtherObjects = true&lt;BR /&gt; Exit function&lt;BR /&gt; End If&lt;BR /&gt; If (objSheet.Pictures.Count &amp;gt; 0) Then&lt;BR /&gt; HasOtherObjects = true&lt;BR /&gt; Exit function&lt;BR /&gt; End If&lt;BR /&gt; If (objSheet.Shapes.Count &amp;gt; 0) Then&lt;BR /&gt; HasOtherObjects = true&lt;BR /&gt; Exit function&lt;BR /&gt; End If&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; HasOtherObjects = false&lt;BR /&gt; End Function &lt;BR /&gt; '//__________________________________________________________________&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 18:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-multiple-objects-to-multiple-Excel-sheets/m-p/1314211#M619173</guid>
      <dc:creator />
      <dc:date>2017-03-30T18:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multiple objects to multiple Excel sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-multiple-objects-to-multiple-Excel-sheets/m-p/1314212#M619174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should continue to add msgboxs until you can identify the exact line where the macro fails.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 19:17:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-multiple-objects-to-multiple-Excel-sheets/m-p/1314212#M619174</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-03-30T19:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multiple objects to multiple Excel sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-multiple-objects-to-multiple-Excel-sheets/m-p/1314213#M619175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I already did that. I had 14, this is the only one left. This is where it fails.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 19:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-multiple-objects-to-multiple-Excel-sheets/m-p/1314213#M619175</guid>
      <dc:creator />
      <dc:date>2017-03-30T19:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multiple objects to multiple Excel sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-multiple-objects-to-multiple-Excel-sheets/m-p/1314214#M619176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you are saying that:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Set objExcelDoc = objExcelApp.Workbooks.Add&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;is the line that fails?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;This code works fine for me:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objExcelApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objExcelApp.Visible = true 'false if you want to hide Excel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objExcelApp.DisplayAlerts = false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objExcelDoc = objExcelApp.Workbooks.Add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 19:51:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-multiple-objects-to-multiple-Excel-sheets/m-p/1314214#M619176</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-03-30T19:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multiple objects to multiple Excel sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-multiple-objects-to-multiple-Excel-sheets/m-p/1314215#M619177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I'm really not sure then. If I put another msgbox after it and comment out msgbox 2, then it fails. I'm at a loss how else to troubleshoot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 19:57:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-multiple-objects-to-multiple-Excel-sheets/m-p/1314215#M619177</guid>
      <dc:creator />
      <dc:date>2017-03-30T19:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multiple objects to multiple Excel sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-multiple-objects-to-multiple-Excel-sheets/m-p/1314216#M619178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you run the code and it fails, do you have an instance of Excel that was opened by the code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 20:04:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-multiple-objects-to-multiple-Excel-sheets/m-p/1314216#M619178</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-03-30T20:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multiple objects to multiple Excel sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-multiple-objects-to-multiple-Excel-sheets/m-p/1314217#M619179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears that when I comment out the msgbox and run it, the screen flickers like it was trying to open Excel, then the module window opens and the code stops running.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 11:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-multiple-objects-to-multiple-Excel-sheets/m-p/1314217#M619179</guid>
      <dc:creator />
      <dc:date>2017-03-31T11:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multiple objects to multiple Excel sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-multiple-objects-to-multiple-Excel-sheets/m-p/1314218#M619180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might look in the task manager to see if you have multiple instances of Excel open. If so, end those processes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you run the code up to &lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #ff0000;"&gt;msgbox "2" &lt;/SPAN&gt;, you should have an open instance of Excel with no open workbook.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should try to debug just this code snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sub test&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objExcelApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objExcelApp.Visible = true 'false if you want to hide Excel&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objExcelApp.DisplayAlerts = false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objExcelDoc = objExcelApp.Workbooks.Add&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 12:01:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-multiple-objects-to-multiple-Excel-sheets/m-p/1314218#M619180</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-03-31T12:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multiple objects to multiple Excel sheets</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-multiple-objects-to-multiple-Excel-sheets/m-p/1314219#M619181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. I had tried something yesterday because I felt that if the code ran when the msgbox was there, then it should run without. I wondered if there was a timing issue. So I scripted in this delay and it runs perfectly now. Thanks again for helping me pin-point the code snipet. This is was what finally worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub test&lt;BR /&gt; &lt;BR /&gt; Set objExcelApp = CreateObject("Excel.Application")&lt;BR /&gt;&amp;nbsp; objExcelApp.Visible = true 'false if you want to hide Excel&lt;BR /&gt;&amp;nbsp; objExcelApp.DisplayAlerts = false&lt;BR /&gt; &lt;BR /&gt; Dim dteWait&lt;BR /&gt; dteWait = DateAdd("s", 2, Now())&lt;BR /&gt; Do Until (Now() &amp;gt; dteWait)&lt;BR /&gt; Loop&lt;BR /&gt; &lt;BR /&gt; Set objExcelDoc = objExcelApp.Workbooks.Add&lt;BR /&gt; &lt;BR /&gt; end sub &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 12:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-multiple-objects-to-multiple-Excel-sheets/m-p/1314219#M619181</guid>
      <dc:creator />
      <dc:date>2017-03-31T12:50:24Z</dc:date>
    </item>
  </channel>
</rss>

