<?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 Export to txt with variable location in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-to-txt-with-variable-location/m-p/225796#M78061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;thanks for your reply. The following code works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;SUB TestExport&lt;BR /&gt;' The QlikView object&lt;BR /&gt;Set obj = ActiveDocument.GetSheetObject("ExportTXT")&lt;BR /&gt; ' The variable for the export location of the file&lt;BR /&gt;set v = ActiveDocument.Variables("vLocationTXT")&lt;BR /&gt;loc = v &amp;amp; "\Exportfiles"&amp;amp;" "&amp;amp;day(now())&amp;amp;"-"&amp;amp;month(now())&amp;amp;"-"&amp;amp;year(now())&amp;amp;"_"&amp;amp; hour(now()) &amp;amp;"-"&amp;amp; minute(now())&amp;amp;"-"&amp;amp; second(now())&amp;amp; ".txt"obj.Export loc , "="&lt;BR /&gt;END SUB&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wiegert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Dec 2010 10:29:35 GMT</pubDate>
    <dc:creator>w_heres</dc:creator>
    <dc:date>2010-12-17T10:29:35Z</dc:date>
    <item>
      <title>Export to txt with variable location</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-txt-with-variable-location/m-p/225794#M78059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to make an export of a table to a .txt file. The location for the exportfile need to be variable.&lt;/P&gt;&lt;P&gt;In VBScript I've the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;SUB TestExport&lt;BR /&gt;' The QlikView object&lt;BR /&gt;Set obj = ActiveDocument.GetSheetObject("ExportTXT")&lt;BR /&gt; ' The variable for the export location of the file&lt;BR /&gt;set v = ActiveDocument.Variables("vLocationTXT")&lt;BR /&gt;&lt;BR /&gt;set loc = v &amp;amp; "\Exportfiles"&amp;amp;" "&amp;amp;day(now())&amp;amp;"-"&amp;amp;month(now())&amp;amp;"-"&amp;amp;year(now())&amp;amp;"_"&amp;amp; hour(now()) &amp;amp;"-"&amp;amp; minute(now())&amp;amp;"-"&amp;amp; second(now())&amp;amp; ".txt"&lt;BR /&gt;END SUB&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;But this didn't work. Does anyone have a solution for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Wiegert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 17:57:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-txt-with-variable-location/m-p/225794#M78059</guid>
      <dc:creator>w_heres</dc:creator>
      <dc:date>2010-12-16T17:57:40Z</dc:date>
    </item>
    <item>
      <title>Export to txt with variable location</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-txt-with-variable-location/m-p/225795#M78060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wiegert,&lt;/P&gt;&lt;P&gt;First, it should be&lt;BR /&gt;set loc = &lt;STRONG&gt;v.GetContent.string&lt;/STRONG&gt; &amp;amp; ...&lt;BR /&gt;Next, the export itself:&lt;BR /&gt;obj.Export loc&lt;BR /&gt;(I'm not sure about the exact syntax of the last one, give it a try...)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Dec 2010 20:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-txt-with-variable-location/m-p/225795#M78060</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-16T20:25:25Z</dc:date>
    </item>
    <item>
      <title>Export to txt with variable location</title>
      <link>https://community.qlik.com/t5/QlikView/Export-to-txt-with-variable-location/m-p/225796#M78061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;thanks for your reply. The following code works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;SUB TestExport&lt;BR /&gt;' The QlikView object&lt;BR /&gt;Set obj = ActiveDocument.GetSheetObject("ExportTXT")&lt;BR /&gt; ' The variable for the export location of the file&lt;BR /&gt;set v = ActiveDocument.Variables("vLocationTXT")&lt;BR /&gt;loc = v &amp;amp; "\Exportfiles"&amp;amp;" "&amp;amp;day(now())&amp;amp;"-"&amp;amp;month(now())&amp;amp;"-"&amp;amp;year(now())&amp;amp;"_"&amp;amp; hour(now()) &amp;amp;"-"&amp;amp; minute(now())&amp;amp;"-"&amp;amp; second(now())&amp;amp; ".txt"obj.Export loc , "="&lt;BR /&gt;END SUB&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wiegert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Dec 2010 10:29:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-to-txt-with-variable-location/m-p/225796#M78061</guid>
      <dc:creator>w_heres</dc:creator>
      <dc:date>2010-12-17T10:29:35Z</dc:date>
    </item>
  </channel>
</rss>

