<?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: Export straight table to txt just as it is macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-straight-table-to-txt-just-as-it-is-macro/m-p/1267259#M849785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adam, i need to export straight table, not store data.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Mar 2017 11:41:53 GMT</pubDate>
    <dc:creator>daniel_kusiak</dc:creator>
    <dc:date>2017-03-10T11:41:53Z</dc:date>
    <item>
      <title>Export straight table to txt just as it is macro</title>
      <link>https://community.qlik.com/t5/QlikView/Export-straight-table-to-txt-just-as-it-is-macro/m-p/1267255#M849781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/155885_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;What i want to do is to export this table to txt so the output will look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;taxonomy;measure;dimension;index;period;value&lt;/P&gt;&lt;P&gt;"F";"FBN01006";"FDWA000:FDWA002";;E;"0"&lt;/P&gt;&lt;P&gt;"F";"FBN01016";"FDWA000:FDWA002";;E;"0"&lt;/P&gt;&lt;P&gt;"F";"FBN01002";"FDWA000:FDWA002";;E;"26 105 178"&lt;/P&gt;&lt;P&gt;"F";"FBN01003";"FDWA000:FDWA002";;E;"26 105 178"&lt;/P&gt;&lt;P&gt;"F";"FBN01004";"FDWA000:FDWA002";;E;"26 105 178"&lt;/P&gt;&lt;P&gt;"F";"FBN01006";"FDWA000:FDWA025";;E;"0"&lt;/P&gt;&lt;P&gt;"F";"FBN01016";"FDWA000:FDWA025";;E;"0"&lt;/P&gt;&lt;P&gt;"F";"FBN01002";"FDWA000:FDWA025";;E;"26 105 178"&lt;/P&gt;&lt;P&gt;"F";"FBN01003";"FDWA000:FDWA025";;E;"26 105 178"&lt;/P&gt;&lt;P&gt;"F";"FBN01004";"FDWA000:FDWA025";;E;"26 105 178"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problems i've encountered so fare are:&lt;/P&gt;&lt;P&gt;- addnig extra qoutes - for example "F" in my output is """F"""&lt;/P&gt;&lt;P&gt;- adding extras spaces - for emaple "F";"FBN01006";"FDWA000:FDWA002";;E;"0" is "F"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "FBN01006"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "FDWA000:FDWA002"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; E&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;"0"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To export i'm using macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Test&lt;/P&gt;&lt;P&gt;XLSFile = "e:\pulpit\Nowy SIZ\Nowe\test.xls"&lt;/P&gt;&lt;P&gt;TXTFile= "e:\pulpit\Nowy SIZ\Nowe\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("Arkusz1")&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("CH07").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; &lt;/P&gt;&lt;P&gt;objExcelDoc.SaveAs TXTFile, -4158 &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;P&gt;&lt;/P&gt;&lt;P&gt;I've also tried to use Export option of Straight Table but results weren't satisfying. &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/Export-straight-table-to-txt-just-as-it-is-macro/m-p/1267255#M849781</guid>
      <dc:creator>daniel_kusiak</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Export straight table to txt just as it is macro</title>
      <link>https://community.qlik.com/t5/QlikView/Export-straight-table-to-txt-just-as-it-is-macro/m-p/1267256#M849782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you send sample qvw file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 11:21:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-straight-table-to-txt-just-as-it-is-macro/m-p/1267256#M849782</guid>
      <dc:creator>muthukumar77</dc:creator>
      <dc:date>2017-03-10T11:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Export straight table to txt just as it is macro</title>
      <link>https://community.qlik.com/t5/QlikView/Export-straight-table-to-txt-just-as-it-is-macro/m-p/1267257#M849783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you just use the store into option? *Edit* I guess this assumes your data is in a data model table though &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&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;Store Table1 into Table1.txt (TXT, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;delimiter is ';'&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 11:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-straight-table-to-txt-just-as-it-is-macro/m-p/1267257#M849783</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-03-10T11:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Export straight table to txt just as it is macro</title>
      <link>https://community.qlik.com/t5/QlikView/Export-straight-table-to-txt-just-as-it-is-macro/m-p/1267258#M849784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look here: &lt;A href="https://community.qlik.com/message/1099719"&gt;Re: Export to CSV with quotation marks&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 11:41:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-straight-table-to-txt-just-as-it-is-macro/m-p/1267258#M849784</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-03-10T11:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Export straight table to txt just as it is macro</title>
      <link>https://community.qlik.com/t5/QlikView/Export-straight-table-to-txt-just-as-it-is-macro/m-p/1267259#M849785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adam, i need to export straight table, not store data.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 11:41:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-straight-table-to-txt-just-as-it-is-macro/m-p/1267259#M849785</guid>
      <dc:creator>daniel_kusiak</dc:creator>
      <dc:date>2017-03-10T11:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Export straight table to txt just as it is macro</title>
      <link>https://community.qlik.com/t5/QlikView/Export-straight-table-to-txt-just-as-it-is-macro/m-p/1267260#M849786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcus, the result of your macro is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"taxonomy",";","measure",";","dimension",";","index",";","period",";","value"&lt;/P&gt;&lt;P&gt;""F"",";",""FBN01006"",";",""FDWA000:FDWA002"",";","",";","E",";",""0""&lt;/P&gt;&lt;P&gt;""F"",";",""FBN01016"",";",""FDWA000:FDWA002"",";","",";","E",";",""0""&lt;/P&gt;&lt;P&gt;""F"",";",""FBN01002"",";",""FDWA000:FDWA002"",";","",";","E",";",""26 105 178""&lt;/P&gt;&lt;P&gt;""F"",";",""FBN01003"",";",""FDWA000:FDWA002"",";","",";","E",";",""26 105 178""&lt;/P&gt;&lt;P&gt;""F"",";",""FBN01004"",";",""FDWA000:FDWA002"",";","",";","E",";",""26 105 178""&lt;/P&gt;&lt;P&gt;""F"",";",""FBN01006"",";",""FDWA000:FDWA025"",";","",";","E",";",""0""&lt;/P&gt;&lt;P&gt;""F"",";",""FBN01016"",";",""FDWA000:FDWA025"",";","",";","E",";",""0""&lt;/P&gt;&lt;P&gt;""F"",";",""FBN01002"",";",""FDWA000:FDWA025"",";","",";","E",";",""26 105 178""&lt;/P&gt;&lt;P&gt;""F"",";",""FBN01003"",";",""FDWA000:FDWA025"",";","",";","E",";",""26 105 178""&lt;/P&gt;&lt;P&gt;""F"",";",""FBN01004"",";",""FDWA000:FDWA025"",";","",";","E",";",""26 105 178""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your solution the problem for me is:&lt;/P&gt;&lt;P&gt;1) for example ""F"" - should be "F", ""FBN01006"" - should be "FBN01006"&lt;/P&gt;&lt;P&gt;2) another delimiter - ,&lt;/P&gt;&lt;P&gt;3) delimiter is ";" - should be ;&lt;/P&gt;&lt;P&gt;4) column names "taxonomy" - should be taxonomy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 11:59:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-straight-table-to-txt-just-as-it-is-macro/m-p/1267260#M849786</guid>
      <dc:creator>daniel_kusiak</dc:creator>
      <dc:date>2017-03-10T11:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Export straight table to txt just as it is macro</title>
      <link>https://community.qlik.com/t5/QlikView/Export-straight-table-to-txt-just-as-it-is-macro/m-p/1267261#M849787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcus, I modified your macro and now it works like charm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub CSVEportWithQuotes&lt;/P&gt;&lt;P&gt;set table = ActiveDocument.GetSheetObject( "CH07" )&lt;/P&gt;&lt;P&gt;for RowIter = 0 to table.GetRowCount-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ColIter =0 to table.GetColumnCount-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set cell = table.GetCell(RowIter,ColIter)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ColIter &amp;lt; table.GetColumnCount-1 then vDelimiter = ";" else: vDelimiter = ""&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vContent = vContent&amp;nbsp; &amp;amp; cell.Text&amp;nbsp; &amp;amp; vDelimiter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vContent = vContent &amp;amp; chr(10)&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;msgbox vContent&lt;/P&gt;&lt;P&gt;set fso = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;set File = fso.OpenTextFile("e:\NoweTest.csv", 2, true)&lt;/P&gt;&lt;P&gt;File.Writeline vContent&lt;/P&gt;&lt;P&gt;File.Close&lt;/P&gt;&lt;P&gt;end sub&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, 10 Mar 2017 12:25:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-straight-table-to-txt-just-as-it-is-macro/m-p/1267261#M849787</guid>
      <dc:creator>daniel_kusiak</dc:creator>
      <dc:date>2017-03-10T12:25:18Z</dc:date>
    </item>
    <item>
      <title>Re: Export straight table to txt just as it is macro</title>
      <link>https://community.qlik.com/t5/QlikView/Export-straight-table-to-txt-just-as-it-is-macro/m-p/1267262#M849788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sub CSVEportWithQuotes&lt;/P&gt;&lt;P&gt;vContent=""&lt;/P&gt;&lt;P&gt;vDelimiter=";"&lt;/P&gt;&lt;P&gt;TXTFile= "C:\test.txt"&lt;/P&gt;&lt;P&gt;set obj = ActiveDocument.GetSheetObject( "CH10" )&lt;/P&gt;&lt;P&gt;for RowIter = 0 to obj.GetRowCount-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ColIter =0 to obj.GetColumnCount-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set cell = obj.GetCell(RowIter,ColIter)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If ColIter=obj.GetColumnCount-1 then &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vContent = vContent &amp;amp; cell.Text &amp;amp; vbcrlf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vContent = vContent &amp;amp; cell.Text &amp;amp; vDelimiter &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vContent = vContent &amp;amp; chr(10)&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;msgbox vContent&lt;/P&gt;&lt;P&gt;set fso = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;set File = fso.OpenTextFile(TXTFile, 2, true)&lt;/P&gt;&lt;P&gt;File.Writeline vContent&lt;/P&gt;&lt;P&gt;File.Close&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 12:57:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-straight-table-to-txt-just-as-it-is-macro/m-p/1267262#M849788</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2017-03-10T12:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Export straight table to txt just as it is macro</title>
      <link>https://community.qlik.com/t5/QlikView/Export-straight-table-to-txt-just-as-it-is-macro/m-p/1267263#M849789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oops Sorry, I didn't realize that you got it already.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 12:57:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-straight-table-to-txt-just-as-it-is-macro/m-p/1267263#M849789</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2017-03-10T12:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Export straight table to txt just as it is macro</title>
      <link>https://community.qlik.com/t5/QlikView/Export-straight-table-to-txt-just-as-it-is-macro/m-p/1834716#M1214790</link>
      <description>&lt;P&gt;This solution does not seem to work from the AccessPoint. It works from the Qlikview application. Anyone know how to get it working from Accesspoint?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 15:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-straight-table-to-txt-just-as-it-is-macro/m-p/1834716#M1214790</guid>
      <dc:creator>VivenReddy</dc:creator>
      <dc:date>2021-09-08T15:43:27Z</dc:date>
    </item>
  </channel>
</rss>

