<?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 Does not work ApplyTheme in macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Does-not-work-ApplyTheme-in-macro/m-p/770328#M1051238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;please, see my macro sub:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sub new_sheet&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; set newsheet=ActiveDocument.CreateSheet&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; set sp=newsheet.GetProperties&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; sp.Name="New Sheet"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; newsheet.setProperties sp&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; newsheet.ApplyTheme "d:\Program Files (x86)\QlikView\Themes\forest.qvt"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; newsheet.Activate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;end sub&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error on &lt;EM&gt;newsheet.ApplyTheme... &lt;/EM&gt;line&lt;/P&gt;&lt;P&gt;When I comment this line, the macro runs without error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. I copied the &lt;EM&gt;forest.qvt &lt;/EM&gt;file to the c:\, but the operator&lt;/P&gt;&lt;P&gt;&lt;EM&gt;newsheet.ApplyTheme "c:\forest.qvt"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;is still not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Nov 2014 09:03:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-05T09:03:23Z</dc:date>
    <item>
      <title>Does not work ApplyTheme in macro</title>
      <link>https://community.qlik.com/t5/QlikView/Does-not-work-ApplyTheme-in-macro/m-p/770328#M1051238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;please, see my macro sub:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;sub new_sheet&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; set newsheet=ActiveDocument.CreateSheet&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; set sp=newsheet.GetProperties&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; sp.Name="New Sheet"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; newsheet.setProperties sp&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; newsheet.ApplyTheme "d:\Program Files (x86)\QlikView\Themes\forest.qvt"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; newsheet.Activate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;end sub&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error on &lt;EM&gt;newsheet.ApplyTheme... &lt;/EM&gt;line&lt;/P&gt;&lt;P&gt;When I comment this line, the macro runs without error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS. I copied the &lt;EM&gt;forest.qvt &lt;/EM&gt;file to the c:\, but the operator&lt;/P&gt;&lt;P&gt;&lt;EM&gt;newsheet.ApplyTheme "c:\forest.qvt"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;is still not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 09:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Does-not-work-ApplyTheme-in-macro/m-p/770328#M1051238</guid>
      <dc:creator />
      <dc:date>2014-11-05T09:03:23Z</dc:date>
    </item>
  </channel>
</rss>

