<?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 into txt file after exporting into excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388722#M1167666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops, my bad. I should learn to copy-paste properly. XLDoc should be objExcelDoc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Oct 2012 07:38:26 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2012-10-08T07:38:26Z</dc:date>
    <item>
      <title>Exporting into txt file after exporting into excel</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388719#M1167663</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;How to export a table into excel and then exporting the same from excel to text file using macro. Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;qvforum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 10:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388719#M1167663</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2012-10-06T10:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting into txt file after exporting into excel</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388720#M1167664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XLSFile = "test.xls"&lt;/P&gt;&lt;P&gt;TXTFile= "test.txt"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set objExcelApp = CreateObject("Excel.Application")&lt;BR /&gt;Set objExcelDoc = objExcelApp.Workbooks.Add&lt;/P&gt;&lt;P&gt;set xlSheet = objExcelDoc.Sheets("Sheet1")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("TB01").CopyTableToClipboard true&lt;/P&gt;&lt;P&gt;XLDoc.Sheets(j).Range("A" &amp;amp; 1).Select&lt;/P&gt;&lt;P&gt;XLDoc.Sheets(j).Paste&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objExcelDoc.SaveAs XLSFile, &lt;SPAN class="Color2"&gt;56&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; 'save as xls&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;objExcelDoc.SaveAs TXTFile, &lt;SPAN class="Color2"&gt;-4158&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'save as txt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;objExcelDoc.Close&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 14:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388720#M1167664</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-06T14:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting into txt file after exporting into excel</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388721#M1167665</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;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13496204865607266" jivemacro_uid="_13496204865607266"&gt;&lt;P&gt;Object required: 'XLDoc'&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to execute something like below but getting the above error. Could you please help me out one this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1349620295957398" jivemacro_uid="_1349620295957398"&gt;&lt;P&gt;Sub Test &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XLSFile = "test.xls"&lt;/P&gt;&lt;P&gt;TXTFile= "test.txt"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set objExcelApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;Set objExcelDoc = objExcelApp.Workbooks.Add&lt;/P&gt;&lt;P&gt;set xlSheet = objExcelDoc.Sheets("Sheet1")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("TB01").CopyTableToClipboard true&lt;/P&gt;&lt;P&gt;XLDoc.Sheets(j).Range("A" &amp;amp; 1).Select&lt;/P&gt;&lt;P&gt;XLDoc.Sheets(j).Paste&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objExcelDoc.SaveAs XLSFile, 56&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; 'save as xls&lt;/P&gt;&lt;P&gt;objExcelDoc.SaveAs TXTFile, -4158&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'save as txt&lt;/P&gt;&lt;P&gt;objExcelDoc.Close &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;Also what I have noticed is that you are exporting one in xls and other in txt. But what I need is to export first in xls then from xls export it in txt. Hope it is clear now!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;qvforum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2012 14:17:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388721#M1167665</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2012-10-07T14:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting into txt file after exporting into excel</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388722#M1167666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops, my bad. I should learn to copy-paste properly. XLDoc should be objExcelDoc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 07:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388722#M1167666</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-08T07:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting into txt file after exporting into excel</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388723#M1167667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13496839126841694" jivemacro_uid="_13496839126841694"&gt;Sub Test &lt;P&gt;XLSFile = "test.xls"&lt;BR /&gt;TXTFile= "test.txt"&lt;/P&gt;&lt;P&gt;Set objExcelApp = CreateObject("Excel.Application")&lt;BR /&gt;Set objExcelDoc = objExcelApp.Workbooks.Add&lt;BR /&gt;set xlSheet = objExcelDoc.Sheets("Sheet1")&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("TB01").CopyTableToClipboard true&lt;BR /&gt;objExcelDoc.Sheets(j).Range("A" &amp;amp; 1).Select&lt;BR /&gt;objExcelDoc.Sheets(j).Paste&lt;/P&gt;&lt;P&gt;objExcelDoc.SaveAs XLSFile, 56&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; 'save as xls&lt;BR /&gt;objExcelDoc.SaveAs TXTFile, -4158&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'save as txt&lt;BR /&gt;objExcelDoc.Close &lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After doing above changes getting the following error message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_134968405569725" jivemacro_uid="_134968405569725"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Subscript out of range&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help please!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 08:15:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388723#M1167667</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2012-10-08T08:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting into txt file after exporting into excel</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388724#M1167668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works for me.&lt;/P&gt;&lt;P&gt;Change&amp;nbsp; the locations of the files, the objectname you want to export (mine is TB01), and the name of the sheet if you're using the english version of excel. My dutch version needs Blad1 instead of Sheet1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Test &lt;/P&gt;&lt;P&gt;XLSFile = "C:\Temp\test.xls"&lt;/P&gt;&lt;P&gt;TXTFile= "C:\Temp\test.txt"&lt;/P&gt;&lt;P&gt;Set objExcelApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;Set objExcelDoc = objExcelApp.Workbooks.Add&lt;/P&gt;&lt;P&gt;set xlSheet = objExcelDoc.Sheets("Sheet1")&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("TB01").CopyTableToClipboard true&lt;/P&gt;&lt;P&gt;xlSheet.Range("A1").Select&lt;/P&gt;&lt;P&gt;xlSheet.Paste&lt;/P&gt;&lt;P&gt;objExcelApp.DisplayAlerts = false&lt;/P&gt;&lt;P&gt;objExcelDoc.SaveAs XLSFile&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;objExcelDoc.SaveAs TXTFile, -4158&amp;nbsp; &lt;/P&gt;&lt;P&gt;objExcelDoc.Close &lt;/P&gt;&lt;P&gt;objExcelApp.DisplayAlerts = true&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 08:43:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388724#M1167668</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-08T08:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting into txt file after exporting into excel</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388725#M1167669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works but it is not giving the required output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Original data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" cellpadding="2" cellspacing="1" dir="ltr" style="width: 176px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#ffffff" height="19" width="61%"&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: Calibri; color: #333333; font-size: 8pt;"&gt;&lt;SPAN style="color: #333333; font-size: 8pt; font-family: Calibri;"&gt;&amp;nbsp; &lt;SPAN style="font-family: Calibri; color: #333333; font-size: 8pt;"&gt;&lt;P align="center"&gt;File&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P align="center"&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P align="center"&gt;&lt;/P&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff" height="19" width="39%"&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: Calibri; color: #333333; font-size: 8pt;"&gt;&lt;SPAN style="color: #333333; font-size: 8pt; font-family: Calibri;"&gt;&amp;nbsp; &lt;SPAN style="font-family: Calibri; color: #333333; font-size: 8pt;"&gt;&lt;P align="center"&gt;Location&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P align="center"&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;P align="center"&gt;&lt;/P&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD bgcolor="#ffffff" height="19" width="61%"&gt;&lt;SPAN style="font-family: Calibri; color: #333333; font-size: 8pt;"&gt;&lt;SPAN style="color: #333333; font-size: 8pt; font-family: Calibri;"&gt;&amp;nbsp; &lt;SPAN style="font-family: Calibri; color: #333333; font-size: 8pt;"&gt;&lt;P align="left"&gt;Development&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff" height="19" width="39%"&gt;&lt;SPAN style="font-family: Calibri; color: #333333; font-size: 8pt;"&gt;&lt;SPAN style="color: #333333; font-size: 8pt; font-family: Calibri;"&gt;&amp;nbsp; &lt;SPAN style="font-family: Calibri; color: #333333; font-size: 8pt;"&gt;&lt;P align="left"&gt;"C:\temp"&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P align="left"&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13496863154818084" jivemacro_uid="_13496863154818084"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File&amp;nbsp; Location &lt;/P&gt;&lt;P&gt;Development """C:\temp"""&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has added double double quotes at the start and end. This is what the problem I am facing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 08:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388725#M1167669</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2012-10-08T08:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting into txt file after exporting into excel</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388726#M1167670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, well this won't solve that problem. But why don't you strip the quotes from the locations first, either on load or in the table you want to export? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 10:05:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388726#M1167670</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-08T10:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting into txt file after exporting into excel</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388727#M1167671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Due to some reasons I cannot remove the quotes! That's the problem here...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 11:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388727#M1167671</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2012-10-08T11:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting into txt file after exporting into excel</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388728#M1167672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/shocked.png" /&gt; The quotes MUST be displayed in your qlikview application!? Wow. Oh, well. Create a chart then that you use only for export, not display (maybe hide it on a hidden sheet). In that chart you can remove the quotes from the location strings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 11:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388728#M1167672</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-08T11:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting into txt file after exporting into excel</title>
      <link>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388729#M1167673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a bug of the STORE command. It triples all double qoutes. You should open a ticket.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 09:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Exporting-into-txt-file-after-exporting-into-excel/m-p/388729#M1167673</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2012-10-09T09:02:30Z</dc:date>
    </item>
  </channel>
</rss>

