<?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 Error in Macro code in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-Macro-code/m-p/415727#M154619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on QV 10 SR3 (64 bit) Qlikview Desktop .I am facing issue with the below code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error Message :&amp;nbsp; Object required: 'ActiveDocument.Variables(...)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub GetActiveIndex&lt;/P&gt;&lt;P&gt;Set ContainerObj= ActiveDocument.GetSheetObject("CT30") &lt;/P&gt;&lt;P&gt;Set ContProp=ContainerObj.GetProperties&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;vActiveIndex=ContProp.SingleObjectActiveIndex&lt;/P&gt;&lt;P&gt;ActiveDocument.Variables("vActiveIndex").SetContent vActiveIndex, true&lt;/P&gt;&lt;P&gt;msgbox vActiveIndex&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the code&amp;nbsp; help to resolve this&amp;nbsp; issue in this code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Dec 2012 07:37:22 GMT</pubDate>
    <dc:creator>spsrk_84</dc:creator>
    <dc:date>2012-12-07T07:37:22Z</dc:date>
    <item>
      <title>Error in Macro code</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Macro-code/m-p/415727#M154619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on QV 10 SR3 (64 bit) Qlikview Desktop .I am facing issue with the below code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error Message :&amp;nbsp; Object required: 'ActiveDocument.Variables(...)'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub GetActiveIndex&lt;/P&gt;&lt;P&gt;Set ContainerObj= ActiveDocument.GetSheetObject("CT30") &lt;/P&gt;&lt;P&gt;Set ContProp=ContainerObj.GetProperties&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;vActiveIndex=ContProp.SingleObjectActiveIndex&lt;/P&gt;&lt;P&gt;ActiveDocument.Variables("vActiveIndex").SetContent vActiveIndex, true&lt;/P&gt;&lt;P&gt;msgbox vActiveIndex&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the code&amp;nbsp; help to resolve this&amp;nbsp; issue in this code &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 07:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Macro-code/m-p/415727#M154619</guid>
      <dc:creator>spsrk_84</dc:creator>
      <dc:date>2012-12-07T07:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Macro code</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Macro-code/m-p/415728#M154620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to get the variable as well as the object like this example in the API Guide ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set v = ActiveDocument.GetVariable("Variable1")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;v.SetContent "123",true&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 07:47:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Macro-code/m-p/415728#M154620</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2012-12-07T07:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Macro code</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Macro-code/m-p/415729#M154621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; The error occured because the variable vActive Index is not created .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 11:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Macro-code/m-p/415729#M154621</guid>
      <dc:creator>spsrk_84</dc:creator>
      <dc:date>2012-12-07T11:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Macro code</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Macro-code/m-p/415730#M154622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course ... looks like there's two ways to set the variable!&amp;nbsp; I've gotten into the habit of always &lt;STRONG&gt;getting &lt;/STRONG&gt;then &lt;STRONG&gt;setting. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;set v = ActiveDocument.Variables("Variable1")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;v.SetContent "123",true&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flipside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 17:02:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Macro-code/m-p/415730#M154622</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2012-12-07T17:02:52Z</dc:date>
    </item>
  </channel>
</rss>

