<?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 Why is my macro not working? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-is-my-macro-not-working/m-p/237800#M504251</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should provide comlete path. It seems, it's trying to save in some windows folders, which is not allowed, especially in Vista environment. Itried following and it works fine:&lt;/P&gt;&lt;P&gt;sub exp&lt;BR /&gt; set obj = ActiveDocument.GetSheetObject("TB01")&lt;BR /&gt; File = "C:\Temp\filename" &amp;amp; DatePart("M", timeStamp) &amp;amp; DatePart("D", timeStamp) &amp;amp; DatePart("YYYY", Date) &amp;amp; ".csv"&lt;BR /&gt; obj.Export File, ";"&lt;BR /&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Nov 2009 11:56:21 GMT</pubDate>
    <dc:creator>disqr_rm</dc:creator>
    <dc:date>2009-11-11T11:56:21Z</dc:date>
    <item>
      <title>Why is my macro not working?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-my-macro-not-working/m-p/237799#M504250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The code below in the OnPostReload Trigger for Run Macro give me an error&lt;/P&gt;&lt;P&gt;Cannot open filename111009.csv for writing!&lt;/P&gt;&lt;P&gt;Does anyone know what I am doing is wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;sub exportList&lt;BR /&gt;set obj = ActiveDocument.GetSheetObject("TB01")&lt;BR /&gt;File = "'filename' &amp;amp; timestamp(now(), 'MMDDYY') &amp;amp; '.csv'")&lt;BR /&gt;obj.Export File, ";"&lt;BR /&gt;'obj.ServerSideExport File, ";"&lt;BR /&gt;end sub&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I have set the Mofule Security &amp;amp; Local Security to Allow System Access. I am on a 64bit QV and will be pushing it to the server to make it auto export onpostreload. Thanks in advance for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 08:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-my-macro-not-working/m-p/237799#M504250</guid>
      <dc:creator>avastani</dc:creator>
      <dc:date>2009-11-11T08:58:21Z</dc:date>
    </item>
    <item>
      <title>Why is my macro not working?</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-my-macro-not-working/m-p/237800#M504251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should provide comlete path. It seems, it's trying to save in some windows folders, which is not allowed, especially in Vista environment. Itried following and it works fine:&lt;/P&gt;&lt;P&gt;sub exp&lt;BR /&gt; set obj = ActiveDocument.GetSheetObject("TB01")&lt;BR /&gt; File = "C:\Temp\filename" &amp;amp; DatePart("M", timeStamp) &amp;amp; DatePart("D", timeStamp) &amp;amp; DatePart("YYYY", Date) &amp;amp; ".csv"&lt;BR /&gt; obj.Export File, ";"&lt;BR /&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2009 11:56:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-my-macro-not-working/m-p/237800#M504251</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-11-11T11:56:21Z</dc:date>
    </item>
  </channel>
</rss>

