<?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 How to define chartArray with variable? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-define-chartArray-with-variable/m-p/1269238#M517758</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to modify Macro for exporting certain tables to Excell. The only problem is that right now those tables are hard coded into macro and I need to change that to variable. Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now part of my code looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;chartArray = Array("CH944", "CH893", "CH863", "CH878")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Array("CH01", "CH02"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; usedRows=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each chart In chartArray&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set l = ActiveDocument.GetSheetObject(chart)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; chartCaption = l.GetCaption.Name.v&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to switch&amp;nbsp; this part &lt;STRONG style="font-size: 13.3333px;"&gt;Array("CH944", "CH893", "CH863", "CH878") with a variable, &lt;/STRONG&gt;any ideas on how can I accoplish that??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Dec 2016 15:07:51 GMT</pubDate>
    <dc:creator>Andrius45</dc:creator>
    <dc:date>2016-12-15T15:07:51Z</dc:date>
    <item>
      <title>How to define chartArray with variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-define-chartArray-with-variable/m-p/1269238#M517758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to modify Macro for exporting certain tables to Excell. The only problem is that right now those tables are hard coded into macro and I need to change that to variable. Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now part of my code looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;chartArray = Array("CH944", "CH893", "CH863", "CH878")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Array("CH01", "CH02"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; usedRows=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each chart In chartArray&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set l = ActiveDocument.GetSheetObject(chart)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; chartCaption = l.GetCaption.Name.v&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to switch&amp;nbsp; this part &lt;STRONG style="font-size: 13.3333px;"&gt;Array("CH944", "CH893", "CH863", "CH878") with a variable, &lt;/STRONG&gt;any ideas on how can I accoplish that??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 15:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-define-chartArray-with-variable/m-p/1269238#M517758</guid>
      <dc:creator>Andrius45</dc:creator>
      <dc:date>2016-12-15T15:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to define chartArray with variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-define-chartArray-with-variable/m-p/1269239#M517759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14818214446682489 jive_text_macro" jivemacro_uid="_14818214446682489" modifiedtitle="true"&gt;
&lt;P&gt;Sub Test&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;vArray = ActiveDocument.GetVariable("vChart").GetContent.String&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;chartArray =split(vArray, ",")&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;For each chart in chartArray&lt;/P&gt;
&lt;P&gt;Set l = ActiveDocument.GetSheetObject(Chart)&lt;/P&gt;
&lt;P&gt;chartCaption = l.GetCaption.Name.v&lt;/P&gt;
&lt;P&gt;Msgbox chartCaption&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 9pt;"&gt;Next&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;End Sub&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 17:07:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-define-chartArray-with-variable/m-p/1269239#M517759</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-12-15T17:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to define chartArray with variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-define-chartArray-with-variable/m-p/1269240#M517760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks alot Tamil, it worked! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 09:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-define-chartArray-with-variable/m-p/1269240#M517760</guid>
      <dc:creator>Andrius45</dc:creator>
      <dc:date>2016-12-16T09:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to define chartArray with variable?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-define-chartArray-with-variable/m-p/1269241#M517761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No problem Andrius. Happy weekend &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Dec 2016 07:13:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-define-chartArray-with-variable/m-p/1269241#M517761</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2016-12-17T07:13:43Z</dc:date>
    </item>
  </channel>
</rss>

