<?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: vba macro to open, reduce data and close in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/vba-macro-to-open-reduce-data-and-close/m-p/418233#M155574</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps reducedata is not allowed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp=ActiveDocument.GetProperties.UserPermissions.ReduceData&lt;/P&gt;&lt;P&gt;if not temp then msgbox("Reduce Data is not allowed")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and/or it removed also path/filename (bug/feature). This could solved per ActiveDocument.SaveAs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 May 2013 08:16:23 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2013-05-02T08:16:23Z</dc:date>
    <item>
      <title>vba macro to open, reduce data and close</title>
      <link>https://community.qlik.com/t5/QlikView/vba-macro-to-open-reduce-data-and-close/m-p/418231#M155572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to create a macro to open a qvw, reduce the data (remove all values), save and close the qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have code that will open and close the qvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is code that will remove all values. Activedocument.reducedata doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also when I do activedocument.save, it prompts me for a file name. I just want it to save with no prompt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 20:04:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/vba-macro-to-open-reduce-data-and-close/m-p/418231#M155572</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2013-05-01T20:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: vba macro to open, reduce data and close</title>
      <link>https://community.qlik.com/t5/QlikView/vba-macro-to-open-reduce-data-and-close/m-p/418232#M155573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ActiveDocument.SaveAs with the original file name as argument works for me to prevent the prompt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need to remove all data you could create an array of the field names add pass those as second parameter to ActiveDocument.ReduceData. See attached example. In the example I hardcoded the array, but you should be able to create this by looping through the fields returned by ActiveDocument.GetFieldDescriptions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 07:57:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/vba-macro-to-open-reduce-data-and-close/m-p/418232#M155573</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-02T07:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: vba macro to open, reduce data and close</title>
      <link>https://community.qlik.com/t5/QlikView/vba-macro-to-open-reduce-data-and-close/m-p/418233#M155574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps reducedata is not allowed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp=ActiveDocument.GetProperties.UserPermissions.ReduceData&lt;/P&gt;&lt;P&gt;if not temp then msgbox("Reduce Data is not allowed")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and/or it removed also path/filename (bug/feature). This could solved per ActiveDocument.SaveAs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2013 08:16:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/vba-macro-to-open-reduce-data-and-close/m-p/418233#M155574</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-05-02T08:16:23Z</dc:date>
    </item>
  </channel>
</rss>

