<?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: How to Combine Multiple Files into one Excel workbook with different worksheer in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111534#M754212</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, try this. It must work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2018 03:24:37 GMT</pubDate>
    <dc:creator>andrey_krylov</dc:creator>
    <dc:date>2018-10-19T03:24:37Z</dc:date>
    <item>
      <title>How to Combine Multiple Files into one Excel workbook with different worksheer</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111530#M754208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written Macro code to export few report (Main, Enabler and Wholesale). I would like to retain and add another code to extract all the report into one with multiple sheet. Any idea, guys? My code is below, rather not change much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Main&lt;/P&gt;&lt;P&gt;sub exportToExcelMain&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Dim path&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;path = getExportPathMain()&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;dim o&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Set o = ActiveDocument.GetSheetObject("Main")&lt;/P&gt;&lt;P&gt;o.ExportBiff path&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Set o = nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;msgbox("Export to " &amp;amp; path &amp;amp; " succeeded!")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function getExportPathMain&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;getExportPathMain = ActiveDocument.Variables("Main Export").GetContent.String&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Enabler&lt;/P&gt;&lt;P&gt;sub exportToExcelEnabler&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Dim path&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;path = getExportPathEnabler()&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;dim o&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Set o = ActiveDocument.GetSheetObject("Enabler")&lt;/P&gt;&lt;P&gt;o.ExportBiff path&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Set o = nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;msgbox("Export to " &amp;amp; path &amp;amp; " succeeded!")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;end sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;function getExportPathEnabler&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;getExportPathEnabler = ActiveDocument.Variables("Enabler Export").GetContent.String&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;end function&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;'Wholesale&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sub exportToExcelWholesale&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Dim path&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;path = getExportPathWholesale()&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;dim o&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Set o = ActiveDocument.GetSheetObject("Wholesale")&lt;/P&gt;&lt;P&gt;o.ExportBiff path&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Set o = nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;msgbox("Export to " &amp;amp; path &amp;amp; " succeeded!")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;end sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function getExportPathWholesale&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;getExportPathWholesale = ActiveDocument.Variables("Wholesale Export").GetContent.String&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;end function&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111530#M754208</guid>
      <dc:creator>hykal1993</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Combine Multiple Files into one Excel workbook with different worksheer</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111531#M754209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Export&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; set oXL = CreateObject("Excel.Application") &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; oXL.DisplayAlerts = False&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; oXL.visible=True 'False ti hide the excel&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim oXLDoc 'as Excel.Workbook&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim i&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; Set oXLDoc = oXL.Workbooks.Add &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FilePath =&amp;nbsp; ActiveDocument.Variables("vPath").GetContent.String&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; FileName =&amp;nbsp; "Test"&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; '---------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SheetObj=Array("CH02","CH04","CH05")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Chart ID's&lt;/P&gt;&lt;P&gt;&amp;nbsp; '---------------------------------------&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; for i=0 to UBound(SheetObj)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; 'ActiveDocument.GetApplication.WaitForIdle&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; oXL.Sheets.Add&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; oXL.ActiveSheet.Move ,oXL.Sheets( oXL.Sheets.Count )&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; Set oSH = oXL.ActiveSheet&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oSH.Range("A1").Select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set obj = ActiveDocument.GetSheetObject(SheetObj(i))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.CopyTableToClipboard True&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oSH.Paste&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sCaption=obj.GetCaption.Name.v&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set obj=Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; oSH.Rows("1:1").Select&lt;/P&gt;&lt;P&gt;&amp;nbsp; oXL.Selection.Font.Bold = True&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; oSH.Cells.Select&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oXL.Selection.Columns.AutoFit&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oSH.Range("A1").Select&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; oSH.Name=left(sCaption,30)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set oSH=Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Next&lt;/P&gt;&lt;P&gt;'---------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp; Call Excel_DeleteBlankSheets(oXLDoc)&lt;/P&gt;&lt;P&gt;'---------------------------------------&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; oXL.DisplayAlerts = True&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oXLDoc.Sheets(1).Select&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; If FilePath &amp;lt;&amp;gt;"" then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; oXLDoc.SaveAs FilePath &amp;amp; "\" &amp;amp; FileName &amp;amp; ".xlsx"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Else&lt;/P&gt;&lt;P&gt;&amp;nbsp; Msgbox "Folder path can not be empty. Enter Valid path"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Exit Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; oXLDoc.Close FALSE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; oXL.Quit&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; Set oXL&amp;nbsp;&amp;nbsp;&amp;nbsp; =Nothing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set oXLDoc =Nothing&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private Sub Excel_DeleteBlankSheets(ByRef oXLDoc)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; For Each ws In oXLDoc.Worksheets&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If oXLDoc.Application.WorksheetFunction.CountA(ws.Cells) = 0 Then&lt;/P&gt;&lt;P&gt;&amp;nbsp; On Error Resume Next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call ws.Delete()&lt;/P&gt;&lt;P&gt;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp; Next&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;End Sub &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2018 14:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111531#M754209</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-10-17T14:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Combine Multiple Files into one Excel workbook with different worksheer</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111532#M754210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. I amend your script a little based on my object and path name. When I click the button, it brings me back to the script. Can you help check the script amended below? Thanks a lot for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Export&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set oXL = CreateObject("Excel.Application") &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;oXL.DisplayAlerts = False&lt;/P&gt;&lt;P&gt;oXL.visible=True 'False ti hide the excel&lt;/P&gt;&lt;P&gt;Dim oXLDoc 'as Excel.Workbook&lt;/P&gt;&lt;P&gt;Dim i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set oXLDoc = oXL.Workbooks.Add &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FilePath =&amp;nbsp; ActiveDocument.Variables("Main Export").GetContent.String&lt;/P&gt;&lt;P&gt;FileName =&amp;nbsp; "Test"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'---------------------------------------&lt;/P&gt;&lt;P&gt;SheetObj=Array("Main","Wholesale","Retail")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Chart ID's&lt;/P&gt;&lt;P&gt;'---------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i=0 to UBound(SheetObj)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;oXL.Sheets.Add&lt;/P&gt;&lt;P&gt;oXL.ActiveSheet.Move ,oXL.Sheets( oXL.Sheets.Count )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set oSH = oXL.ActiveSheet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oSH.Range("A1").Select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set obj = ActiveDocument.GetSheetObject(SheetObj(i))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.CopyTableToClipboard True&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oSH.Paste &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sCaption=obj.GetCaption.Name.v&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set obj=Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;oSH.Rows("1:1").Select&lt;/P&gt;&lt;P&gt;oXL.Selection.Font.Bold = True&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oSH.Cells.Select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oXL.Selection.Columns.AutoFit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oSH.Range("A1").Select&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;oSH.Name=left(sCaption,30)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set oSH=Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next &lt;/P&gt;&lt;P&gt;'---------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp; Call Excel_DeleteBlankSheets(oXLDoc)&lt;/P&gt;&lt;P&gt;'---------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;oXL.DisplayAlerts = True&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oXLDoc.Sheets(1).Select &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If FilePath &amp;lt;&amp;gt;"" then&lt;/P&gt;&lt;P&gt;oXLDoc.SaveAs FilePath &amp;amp; "\" &amp;amp; FileName &amp;amp; ".xlsx" &lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;Msgbox "Folder path can not be empty. Enter Valid path"&lt;/P&gt;&lt;P&gt;Exit Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; oXLDoc.Close FALSE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; oXL.Quit &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set oXL&amp;nbsp;&amp;nbsp;&amp;nbsp; =Nothing&lt;/P&gt;&lt;P&gt;Set oXLDoc =Nothing&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'--------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private Sub Excel_DeleteBlankSheets(ByRef oXLDoc) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; For Each ws In oXLDoc.Worksheets&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If oXLDoc.Application.WorksheetFunction.CountA(ws.Cells) = 0 Then&lt;/P&gt;&lt;P&gt;On Error Resume Next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call ws.Delete()&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;&amp;nbsp; Next &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'--------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 02:18:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111532#M754210</guid>
      <dc:creator>hykal1993</dc:creator>
      <dc:date>2018-10-19T02:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to Combine Multiple Files into one Excel workbook with different worksheer</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111533#M754211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, I tried to click export in your file, it brings me back to the script page (I have changed the path to my local btw)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 02:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111533#M754211</guid>
      <dc:creator>hykal1993</dc:creator>
      <dc:date>2018-10-19T02:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to Combine Multiple Files into one Excel workbook with different worksheer</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111534#M754212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, try this. It must work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 03:24:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111534#M754212</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-10-19T03:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to Combine Multiple Files into one Excel workbook with different worksheer</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111535#M754213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It still doesn't work. I tried to replace with your object and path in your file, it will bring me back to the script. Can you change according to your object, let me run and check whether it work first. I'll replace with my objects once it works. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 06:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111535#M754213</guid>
      <dc:creator>hykal1993</dc:creator>
      <dc:date>2018-10-19T06:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to Combine Multiple Files into one Excel workbook with different worksheer</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111536#M754214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I download the attached file and it works. Run this macro in Macro Editor and see the message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/216279_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 06:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111536#M754214</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-10-19T06:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to Combine Multiple Files into one Excel workbook with different worksheer</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111537#M754215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed the path to my local&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/216284_test.PNG" style="height: 200px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;When I click export, the script comes out&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test 2.PNG" class="jive-image image-2" src="/legacyfs/online/216285_test 2.PNG" style="height: 498px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 07:00:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111537#M754215</guid>
      <dc:creator>hykal1993</dc:creator>
      <dc:date>2018-10-19T07:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Combine Multiple Files into one Excel workbook with different worksheer</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111538#M754216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error says ActiveX component can't create object: 'Excel.Application'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="test 3.PNG" class="jive-image image-1" src="/legacyfs/online/216287_test 3.PNG" style="height: 84px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 07:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111538#M754216</guid>
      <dc:creator>hykal1993</dc:creator>
      <dc:date>2018-10-19T07:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to Combine Multiple Files into one Excel workbook with different worksheer</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111539#M754217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Switch to Allow System Access&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/216290_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 07:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111539#M754217</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-10-19T07:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to Combine Multiple Files into one Excel workbook with different worksheer</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111540#M754218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much, it works!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2018 07:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Combine-Multiple-Files-into-one-Excel-workbook-with/m-p/111540#M754218</guid>
      <dc:creator>hykal1993</dc:creator>
      <dc:date>2018-10-19T07:22:39Z</dc:date>
    </item>
  </channel>
</rss>

