<?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: Inserting a variable value using ActiveDocument.fields in  a macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Inserting-a-variable-value-using-ActiveDocument-fields-in-a/m-p/1830286#M1214443</link>
    <description>&lt;P&gt;You are the MAN!&amp;nbsp; Thank you so much, Rob.&amp;nbsp; It worked exactly as you described.&amp;nbsp; This will save me a ton of time... you're my hero.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Aug 2021 21:29:27 GMT</pubDate>
    <dc:creator>rygreene3</dc:creator>
    <dc:date>2021-08-20T21:29:27Z</dc:date>
    <item>
      <title>Inserting a variable value using ActiveDocument.fields in  a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Inserting-a-variable-value-using-ActiveDocument-fields-in-a/m-p/1830268#M1214438</link>
      <description>&lt;P&gt;Hello.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently use the following command in my macro to filter on a specific value before exporting data into a QVD.&amp;nbsp; I have to repeat this operation across multiple fields using the same value.&amp;nbsp; I would like to use an Input Object to set the search value as a variable, and then insert that variable value into the ActiveDocument.fields command.&amp;nbsp; Can someone show me how I would do that?&lt;/P&gt;&lt;P&gt;Here's my current command:&amp;nbsp;&amp;nbsp; ActiveDocument.fields("CREG_GLOBAL_ULTIMATE_ID").Select("23471")&lt;/P&gt;&lt;P&gt;The variable name associated to the Input Object is, "vZONE_CR_GU_VARIABLE"&lt;/P&gt;&lt;P&gt;I thought I could do the following command, but it isn't working.&amp;nbsp; I think I must be missing a step:&amp;nbsp;&amp;nbsp;ActiveDocument.fields("CREG_GLOBAL_ULTIMATE_ID").Select("vZONE_CR_GU_VARIABLE")&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 17:56:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inserting-a-variable-value-using-ActiveDocument-fields-in-a/m-p/1830268#M1214438</guid>
      <dc:creator>rygreene3</dc:creator>
      <dc:date>2021-08-20T17:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting a variable value using ActiveDocument.fields in  a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Inserting-a-variable-value-using-ActiveDocument-fields-in-a/m-p/1830280#M1214442</link>
      <description>&lt;P&gt;Here are two ways to get the contents of a variable using VBScript.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;varValue = ActiveDocument.GetVariable("&lt;SPAN&gt;vZONE_CR_GU_VARIABLE&lt;/SPAN&gt;").GetContent.String&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;varValue = ActiveDocument.Evaluate("'$(&lt;SPAN&gt;vZONE_CR_GU_VARIABLE)'")&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And then you can use like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;ActiveDocument.fields("CREG_GLOBAL_ULTIMATE_ID").Select(varValue)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank" rel="noopener"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank" rel="noopener"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank" rel="noopener"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 21:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inserting-a-variable-value-using-ActiveDocument-fields-in-a/m-p/1830280#M1214442</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2021-08-20T21:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting a variable value using ActiveDocument.fields in  a macro</title>
      <link>https://community.qlik.com/t5/QlikView/Inserting-a-variable-value-using-ActiveDocument-fields-in-a/m-p/1830286#M1214443</link>
      <description>&lt;P&gt;You are the MAN!&amp;nbsp; Thank you so much, Rob.&amp;nbsp; It worked exactly as you described.&amp;nbsp; This will save me a ton of time... you're my hero.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 21:29:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inserting-a-variable-value-using-ActiveDocument-fields-in-a/m-p/1830286#M1214443</guid>
      <dc:creator>rygreene3</dc:creator>
      <dc:date>2021-08-20T21:29:27Z</dc:date>
    </item>
  </channel>
</rss>

