<?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: Macro Not Running: Edit Module Button Keeps Popping up in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-Not-Running-Edit-Module-Button-Keeps-Popping-up/m-p/38123#M6436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tamil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ClearRebates module is used to reset the values of the inputfield named 'Rebate' to 0. The ResetExchangeRate module is used to reset the values of an inputfield which contains currency exchange rates to their original values when loaded from an excel file. Hope that helps as I cannot share the file unfortunately. And I'm using these macros as an action in two different text objects as triggers. But when I click the object, the Edit Module box pops up instead of macro running.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2018 04:30:33 GMT</pubDate>
    <dc:creator>mrthomasshelby</dc:creator>
    <dc:date>2018-04-02T04:30:33Z</dc:date>
    <item>
      <title>Macro Not Running: Edit Module Button Keeps Popping up</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Not-Running-Edit-Module-Button-Keeps-Popping-up/m-p/38121#M6434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I have written a macro as below for 2 modules: Clear Rebates and Reset Exchange Rates which clear the input field named 'Rebate' and reset the values of the input field 'FX_Rate' respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub ClearRebates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set fld = ActiveDocument.Fields("Rebate")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fld.ResetInputFieldValues 0&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub ResetExchangeRate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dim x(1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x(0) = 0 ' element to reset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set fld = ActiveDocument.Fields("FX_Rate")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fld.ResetInputFieldValues 0, x ' 0 = All values reset, 1 = Reset Possible value, 2 = Reset single value&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;However, when I add this Run Macro action to a button, the macro isn't running but the Edit Module button keeps popping up. I read in a different thread that this happens in the macro is wrongly written. As I'm pretty new to macros and only got the above code from this wonderful community, I'm not able to understand what's wrong with the macro. Please help me out! TIA!&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/34510"&gt;kaushik.solanki&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 04:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Not-Running-Edit-Module-Button-Keeps-Popping-up/m-p/38121#M6434</guid>
      <dc:creator>mrthomasshelby</dc:creator>
      <dc:date>2018-04-02T04:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Not Running: Edit Module Button Keeps Popping up</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Not-Running-Edit-Module-Button-Keeps-Popping-up/m-p/38122#M6435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Phalgun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure what you are trying to achieve but try this. &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If this is not your question, please post a sample and expected result. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sub ResetExchangeRate&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;set fld = ActiveDocument.Fields("FX_Rate")&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;fld.ResetInputFieldValues 0, &lt;STRONG style="color: #ff0000;"&gt;0&lt;/STRONG&gt; ' 0 = All values reset, 1 = Reset Possible value, 2 = Reset single value&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;End sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 04:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Not-Running-Edit-Module-Button-Keeps-Popping-up/m-p/38122#M6435</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2018-04-02T04:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Not Running: Edit Module Button Keeps Popping up</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Not-Running-Edit-Module-Button-Keeps-Popping-up/m-p/38123#M6436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tamil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ClearRebates module is used to reset the values of the inputfield named 'Rebate' to 0. The ResetExchangeRate module is used to reset the values of an inputfield which contains currency exchange rates to their original values when loaded from an excel file. Hope that helps as I cannot share the file unfortunately. And I'm using these macros as an action in two different text objects as triggers. But when I click the object, the Edit Module box pops up instead of macro running.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 04:30:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Not-Running-Edit-Module-Button-Keeps-Popping-up/m-p/38123#M6436</guid>
      <dc:creator>mrthomasshelby</dc:creator>
      <dc:date>2018-04-02T04:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Not Running: Edit Module Button Keeps Popping up</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Not-Running-Edit-Module-Button-Keeps-Popping-up/m-p/38124#M6437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Phalgun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the attached file. It is working fine for me. You don't need to share your original file but you can create a sample file like I provided and show us your issue. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 05:03:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Not-Running-Edit-Module-Button-Keeps-Popping-up/m-p/38124#M6437</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2018-04-02T05:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Macro Not Running: Edit Module Button Keeps Popping up</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-Not-Running-Edit-Module-Button-Keeps-Popping-up/m-p/38125#M6438</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;Thanks for your time. It looks like it's some weird glitch as the macros started working fine after I closed and reopened the file. Don't know why.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 05:06:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-Not-Running-Edit-Module-Button-Keeps-Popping-up/m-p/38125#M6438</guid>
      <dc:creator>mrthomasshelby</dc:creator>
      <dc:date>2018-04-02T05:06:12Z</dc:date>
    </item>
  </channel>
</rss>

