<?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: Macro or batch to convert .xlsb to .xlsx in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-or-batch-to-convert-xlsb-to-xlsx/m-p/1421906#M428846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pankaj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After Using the above Macro, it do convert into Xlsx format but we are not able to open it.&lt;/P&gt;&lt;P&gt;Please refer below error Screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Error.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/173985_Error.PNG" style="height: 77px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vanraj Dinesh Bohra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Aug 2017 01:50:31 GMT</pubDate>
    <dc:creator>bohravanraj</dc:creator>
    <dc:date>2017-08-21T01:50:31Z</dc:date>
    <item>
      <title>Macro or batch to convert .xlsb to .xlsx</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-or-batch-to-convert-xlsb-to-xlsx/m-p/1421902#M428842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a data source as Excel binary file(.xlsb). in order to fetch data from this file we need to install ODBC driver which is not possible at my client location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;work around for this i thought can we write an macro or batch file to convert .xlsb to .xlsx , then we can take this data in Qlikview easily.&lt;/P&gt;&lt;P&gt;but i dont have any experience to write macro or batch command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you all suggest how can we solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vanraj Dinesh Bohra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 03:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-or-batch-to-convert-xlsb-to-xlsx/m-p/1421902#M428842</guid>
      <dc:creator>bohravanraj</dc:creator>
      <dc:date>2017-08-18T03:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Macro or batch to convert .xlsb to .xlsx</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-or-batch-to-convert-xlsb-to-xlsx/m-p/1421903#M428843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vanraj,&lt;/P&gt;&lt;P&gt;Converting from .xlsb to .xlsx is similar to converting .csv to .xlsx&lt;/P&gt;&lt;P&gt;if you rename the file extension this will do.&lt;/P&gt;&lt;P&gt;Search for macro to convert xlsx to csv and fit 5o your requirement&lt;/P&gt;&lt;P&gt;Something like below would do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln"&gt;ActiveWorkbook&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;SaveAs FileName&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; ActiveWorkbook&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;Path &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="str"&gt;"\"&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; _ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln"&gt;Replace&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;ActiveWorkbook&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;Name&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="str"&gt;"xslx"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="str"&gt;"csv"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;),&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; _ &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln"&gt;FileFormat&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;xlCSVMac&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; CreateBackup&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:=&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;False&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lit"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lit"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lit"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lit"&gt;Pankaj&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 05:54:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-or-batch-to-convert-xlsb-to-xlsx/m-p/1421903#M428843</guid>
      <dc:creator>passionate</dc:creator>
      <dc:date>2017-08-18T05:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Macro or batch to convert .xlsb to .xlsx</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-or-batch-to-convert-xlsb-to-xlsx/m-p/1421904#M428844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pankaj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried finding this macro to convert CSV to .xlsx, but dint found any success.&lt;/P&gt;&lt;P&gt;can you share that macro here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vanraj Dinesh Bohra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 06:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-or-batch-to-convert-xlsb-to-xlsx/m-p/1421904#M428844</guid>
      <dc:creator>bohravanraj</dc:creator>
      <dc:date>2017-08-18T06:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Macro or batch to convert .xlsb to .xlsx</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-or-batch-to-convert-xlsb-to-xlsx/m-p/1421905#M428845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vanraj,&lt;/P&gt;&lt;P&gt;Use below code in excel macro and execute.&lt;/P&gt;&lt;P&gt;this will convert all xlsb files to xlsx in a folder:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub LoopFiles()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WorkingDir = "C:\Users\xyz\Desktop\Newfolder\"&lt;BR /&gt; extension = "xlsb"&lt;/P&gt;&lt;P&gt; Dim fso, myFolder, fileColl, aFile, FileName, SaveName&lt;BR /&gt; Dim objExcel, objWorkbook&lt;/P&gt;&lt;P&gt; Set fso = CreateObject("Scripting.FilesystemObject")&lt;BR /&gt; Set myFolder = fso.GetFolder(WorkingDir)&lt;BR /&gt; Set fileColl = myFolder.Files&lt;/P&gt;&lt;P&gt; Set objExcel = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt; objExcel.Visible = False&lt;BR /&gt; objExcel.DisplayAlerts = False&lt;/P&gt;&lt;P&gt; For Each aFile In fileColl&lt;BR /&gt; ext = Right(aFile.Name, 4)&lt;BR /&gt; If UCase(ext) = UCase(extension) Then&lt;BR /&gt; 'open excel&lt;BR /&gt; FileName = Left(aFile, InStrRev(aFile, "."))&lt;BR /&gt; Set objWorkbook = objExcel.Workbooks.Open(aFile)&lt;BR /&gt; SaveName = FileName &amp;amp; "xlsx"&lt;BR /&gt; objWorkbook.SaveAs SaveName, 23&lt;BR /&gt; objWorkbook.Close&lt;BR /&gt; End If&lt;BR /&gt; Next&lt;/P&gt;&lt;P&gt; Set objWorkbook = Nothing&lt;BR /&gt; Set objExcel = Nothing&lt;BR /&gt; Set fso = Nothing&lt;BR /&gt; Set myFolder = Nothing&lt;BR /&gt; Set fileColl = Nothing&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2017 08:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-or-batch-to-convert-xlsb-to-xlsx/m-p/1421905#M428845</guid>
      <dc:creator>passionate</dc:creator>
      <dc:date>2017-08-18T08:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Macro or batch to convert .xlsb to .xlsx</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-or-batch-to-convert-xlsb-to-xlsx/m-p/1421906#M428846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pankaj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After Using the above Macro, it do convert into Xlsx format but we are not able to open it.&lt;/P&gt;&lt;P&gt;Please refer below error Screenshot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Error.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/173985_Error.PNG" style="height: 77px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vanraj Dinesh Bohra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 01:50:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-or-batch-to-convert-xlsb-to-xlsx/m-p/1421906#M428846</guid>
      <dc:creator>bohravanraj</dc:creator>
      <dc:date>2017-08-21T01:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Macro or batch to convert .xlsb to .xlsx</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-or-batch-to-convert-xlsb-to-xlsx/m-p/1421907#M428847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pankaj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank a million.&lt;/P&gt;&lt;P&gt;Ur code was working fine but only the file format in which u were converting was wrong i.e. &lt;SPAN style="color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px;"&gt;FileFormat - 23.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px;"&gt;It should be 51.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px;"&gt;Please find below the correct code for this macro - &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #242729; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 15px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sub LoopFiles()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WorkingDir = "C:\"&lt;/P&gt;&lt;P&gt;extension = "xlsb"&lt;/P&gt;&lt;P&gt;Dim fso, myFolder, fileColl, aFile, FileName, SaveName&lt;/P&gt;&lt;P&gt;Dim objExcel, objWorkbook&lt;/P&gt;&lt;P&gt;Set fso = CreateObject("Scripting.FilesystemObject")&lt;/P&gt;&lt;P&gt;Set myFolder = fso.GetFolder(WorkingDir)&lt;/P&gt;&lt;P&gt;Set fileColl = myFolder.Files&lt;/P&gt;&lt;P&gt;Set objExcel = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;objExcel.Visible = False&lt;/P&gt;&lt;P&gt;objExcel.DisplayAlerts = False&lt;/P&gt;&lt;P&gt;For Each aFile In fileColl&lt;/P&gt;&lt;P&gt;ext = Right(aFile.Name, 4)&lt;/P&gt;&lt;P&gt;If UCase(ext) = UCase(extension) Then&lt;/P&gt;&lt;P&gt;'open excel&lt;/P&gt;&lt;P&gt;FileName = Left(aFile, InStrRev(aFile, "."))&lt;/P&gt;&lt;P&gt;Set objWorkbook = objExcel.Workbooks.Open(aFile)&lt;/P&gt;&lt;P&gt;SaveName = FileName &amp;amp; "xlsx"&lt;/P&gt;&lt;P&gt;objWorkbook.SaveAs SaveName,&lt;SPAN style="color: #ffff00;"&gt; &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;51&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;objWorkbook.Close&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;Set objWorkbook = Nothing&lt;/P&gt;&lt;P&gt;Set objExcel = Nothing&lt;/P&gt;&lt;P&gt;Set fso = Nothing&lt;/P&gt;&lt;P&gt;Set myFolder = Nothing&lt;/P&gt;&lt;P&gt;Set fileColl = 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;Regards,&lt;/P&gt;&lt;P&gt;Vanraj Dinesh Bohra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 07:02:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-or-batch-to-convert-xlsb-to-xlsx/m-p/1421907#M428847</guid>
      <dc:creator>bohravanraj</dc:creator>
      <dc:date>2017-08-21T07:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Macro or batch to convert .xlsb to .xlsx</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-or-batch-to-convert-xlsb-to-xlsx/m-p/1421908#M428848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vanraj&lt;/P&gt;&lt;P&gt;Yes, the filecode should have been changed. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 05:58:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-or-batch-to-convert-xlsb-to-xlsx/m-p/1421908#M428848</guid>
      <dc:creator>passionate</dc:creator>
      <dc:date>2017-08-24T05:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Macro or batch to convert .xlsb to .xlsx</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-or-batch-to-convert-xlsb-to-xlsx/m-p/1529820#M438683</link>
      <description>I tried using this but at the end of each file I get a pop up saying "Microsoft Excel is waiting for another application to complete an OLE action" which needs to be pressed OK before it moves to converting next file. How can I overcome this?</description>
      <pubDate>Mon, 14 Jan 2019 06:27:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-or-batch-to-convert-xlsb-to-xlsx/m-p/1529820#M438683</guid>
      <dc:creator>ashishkra</dc:creator>
      <dc:date>2019-01-14T06:27:33Z</dc:date>
    </item>
  </channel>
</rss>

