<?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: Assign QV variable value in Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Assign-QV-variable-value-in-Macro/m-p/963626#M330473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change it into:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dim strValueToDisplay&lt;/P&gt;&lt;P&gt;strValueToDisplay =&amp;nbsp; ActiveDocument.Variables("V_AMID_Macro").GetContent.String &lt;/P&gt;&lt;P&gt;msgbox("The value of ""vValueToDisplay"" is: " &amp;amp; strValueToDisplay)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Dec 2015 00:57:45 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2015-12-22T00:57:45Z</dc:date>
    <item>
      <title>Assign QV variable value in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-QV-variable-value-in-Macro/m-p/963625#M330472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to assign the QV variable value inside Macro and call the macro using button click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the coding I have used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Procedure&lt;/P&gt;&lt;P&gt; dim strValueToDisplay&lt;/P&gt;&lt;P&gt;set strValueToDisplay =&amp;nbsp; ActiveDocument.Variables("V_AMID_Macro").GetContent().String &lt;/P&gt;&lt;P&gt;msgbox("The value of ""vValueToDisplay"" is: " &amp;amp; strValueToDisplay)&lt;/P&gt;&lt;P&gt;END Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I click the button it is taking to the edit module page instead of displaying the message box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help to solve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 14:15:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-QV-variable-value-in-Macro/m-p/963625#M330472</guid>
      <dc:creator />
      <dc:date>2015-12-21T14:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Assign QV variable value in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-QV-variable-value-in-Macro/m-p/963626#M330473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change it into:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dim strValueToDisplay&lt;/P&gt;&lt;P&gt;strValueToDisplay =&amp;nbsp; ActiveDocument.Variables("V_AMID_Macro").GetContent.String &lt;/P&gt;&lt;P&gt;msgbox("The value of ""vValueToDisplay"" is: " &amp;amp; strValueToDisplay)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 00:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-QV-variable-value-in-Macro/m-p/963626#M330473</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-12-22T00:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Assign QV variable value in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-QV-variable-value-in-Macro/m-p/963627#M330474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or try,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Procedure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set var = ActiveDocument.Variables("V_AMID_Macro") &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox("The value of ""vValueToDisplay"" is: " &amp;amp; var.GetContent.String) &lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 01:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-QV-variable-value-in-Macro/m-p/963627#M330474</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-12-22T01:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Assign QV variable value in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-QV-variable-value-in-Macro/m-p/963628#M330475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The message box expression should be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;msgbox("The value of vValueToDisplay is: " &amp;amp; strValueToDisplay)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vValueToDisplay&amp;nbsp; is a variable in macro?&amp;nbsp; If yes also create a variable for this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link for more macro samples&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="j-search-result-value" href="https://community.qlik.com/docs/DOC-4870" style="font-weight: bold; font-size: 15px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;&lt;SPAN class="j-search-result-title" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;EM class="jive-hilite" style="font-family: inherit; background-color: #ffffcd;"&gt;Useful&lt;/EM&gt; &lt;EM class="jive-hilite" style="font-family: inherit; background-color: #ffffcd;"&gt;Qlikview&lt;/EM&gt; &lt;EM class="jive-hilite" style="font-family: inherit; background-color: #ffffcd;"&gt;Macros&lt;/EM&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Dec 2015 02:50:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-QV-variable-value-in-Macro/m-p/963628#M330475</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-12-22T02:50:51Z</dc:date>
    </item>
  </channel>
</rss>

