<?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: Alert message when Macro fails in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Alert-message-when-Macro-fails/m-p/1420547#M807031</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this Omar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better in else script you can add this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/69476"&gt;https://community.qlik.com/thread/69476&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Oct 2017 11:40:58 GMT</pubDate>
    <dc:creator>srivastalans</dc:creator>
    <dc:date>2017-10-24T11:40:58Z</dc:date>
    <item>
      <title>Alert message when Macro fails</title>
      <link>https://community.qlik.com/t5/QlikView/Alert-message-when-Macro-fails/m-p/1420540#M807024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we execute a macro and it fails,the per default thing that happens is that the macro script is shown.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question now, is there a way, instead of this behaviour, a Message Box is shown (an alert) saying that the macro failed to execute? or/AND an email is sent saying that the MACRO FAILED TO EXECUTE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you a lot !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alert-message-when-Macro-fails/m-p/1420540#M807024</guid>
      <dc:creator>OmarBenSalem</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Alert message when Macro fails</title>
      <link>https://community.qlik.com/t5/QlikView/Alert-message-when-Macro-fails/m-p/1420541#M807025</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;You want to sent email means through QMC or just reload. As QMC will not execute macros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look into this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/677507"&gt;Re: QVW to create bat file which contain the copy command for all the QVD's used in the QVW. Help on this!&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 09:30:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alert-message-when-Macro-fails/m-p/1420541#M807025</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2017-10-24T09:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Alert message when Macro fails</title>
      <link>https://community.qlik.com/t5/QlikView/Alert-message-when-Macro-fails/m-p/1420542#M807026</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;Create a dummy variable as&lt;STRONG&gt; vA &lt;/STRONG&gt;in Variable Overview and go to Document Properties --&amp;gt; Triggers --&amp;gt; OnPostReload --&amp;gt; add actions (b4 Run Macro) --&amp;gt; Set Variable --&amp;gt; Variable = vA , Value = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below Set Variable &lt;STRONG&gt;vA, &lt;/STRONG&gt;add action Run Macro --&amp;gt; Macro Name = &lt;STRONG&gt;Check&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code in macro (Tools --&amp;gt; Edit Module),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sub Check &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If (ActiveDocument.Evaluate("=$(vA)"))=1 then&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'Your Code&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set Var1 = ActiveDocument.Variables("vA")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Var1.SetContent "0",true&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;else&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Msgbox("Macro Failed")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End If&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;end sub&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 10:03:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alert-message-when-Macro-fails/m-p/1420542#M807026</guid>
      <dc:creator>srivastalans</dc:creator>
      <dc:date>2017-10-24T10:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Alert message when Macro fails</title>
      <link>https://community.qlik.com/t5/QlikView/Alert-message-when-Macro-fails/m-p/1420543#M807027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if I have this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sub Distribute&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;bla bla&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;end sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and then add :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Sub Check&lt;/STRONG&gt;&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;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;If (ActiveDocument.Evaluate("=$(vA)"))=1 then&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;'//here is my code&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;sub Distribute&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;bla bla&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;end sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;'//////&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Set Var1 = ActiveDocument.Variables("vA")&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Var1.SetContent "0",true&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;else&lt;/STRONG&gt;&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;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Msgbox("Macro Failed")&lt;/STRONG&gt;&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;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;End If&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;end sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=&amp;gt; I have a syntax error !&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;How to surround my sub with the check sub?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 10:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alert-message-when-Macro-fails/m-p/1420543#M807027</guid>
      <dc:creator>OmarBenSalem</dc:creator>
      <dc:date>2017-10-24T10:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Alert message when Macro fails</title>
      <link>https://community.qlik.com/t5/QlikView/Alert-message-when-Macro-fails/m-p/1420544#M807028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Omar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Add your code without including &lt;STRONG&gt;Sub Distribute &lt;/STRONG&gt;and &lt;STRONG&gt;end sub.. &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 10:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alert-message-when-Macro-fails/m-p/1420544#M807028</guid>
      <dc:creator>srivastalans</dc:creator>
      <dc:date>2017-10-24T10:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Alert message when Macro fails</title>
      <link>https://community.qlik.com/t5/QlikView/Alert-message-when-Macro-fails/m-p/1420545#M807029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's really good ! and what if with the alert, I want to send an email just for me with the object : macro failure and a message: the macro has failed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 11:21:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alert-message-when-Macro-fails/m-p/1420545#M807029</guid>
      <dc:creator>OmarBenSalem</dc:creator>
      <dc:date>2017-10-24T11:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Alert message when Macro fails</title>
      <link>https://community.qlik.com/t5/QlikView/Alert-message-when-Macro-fails/m-p/1420546#M807030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Omar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I want to work on that error message as mail to User.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 11:34:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alert-message-when-Macro-fails/m-p/1420546#M807030</guid>
      <dc:creator>srivastalans</dc:creator>
      <dc:date>2017-10-24T11:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Alert message when Macro fails</title>
      <link>https://community.qlik.com/t5/QlikView/Alert-message-when-Macro-fails/m-p/1420547#M807031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this Omar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Better in else script you can add this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/69476"&gt;https://community.qlik.com/thread/69476&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 11:40:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alert-message-when-Macro-fails/m-p/1420547#M807031</guid>
      <dc:creator>srivastalans</dc:creator>
      <dc:date>2017-10-24T11:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Alert message when Macro fails</title>
      <link>https://community.qlik.com/t5/QlikView/Alert-message-when-Macro-fails/m-p/1420548#M807032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 12:08:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Alert-message-when-Macro-fails/m-p/1420548#M807032</guid>
      <dc:creator>OmarBenSalem</dc:creator>
      <dc:date>2017-10-24T12:08:02Z</dc:date>
    </item>
  </channel>
</rss>

