<?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: Need help with msgbox and macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-with-msgbox-and-macro/m-p/1554289#M598048</link>
    <description>&lt;P&gt;The macro-execution (regardless what is within the macro) could be easily bypassed. Therefore I doubt that's really suitable for what do you want to do. But the already mentioned section access might be a solution for your tasks.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2019 14:30:50 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2019-03-08T14:30:50Z</dc:date>
    <item>
      <title>Need help with msgbox and macro</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-msgbox-and-macro/m-p/1553981#M598046</link>
      <description>&lt;P&gt;I need help if users choose no to prompt a password open the document. Is it possible with this example?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub DisplayMessage&lt;BR /&gt;Answer = MsgBox("Expired",4,"Title")&lt;BR /&gt;If (Answer=6) and ActiveDocument.Evaluate("today() - makedate(2019,1,1)") &amp;gt; 0 Then&lt;BR /&gt;ActiveDocument.GetApplication.Quit&lt;BR /&gt;Else&lt;BR /&gt;if (Answer=7) and ActiveDocument.Evaluate("today() - makedate(2019,1,1)") &amp;gt; 0 then&lt;BR /&gt;' If No (Answer=7) I would like to prompt a password to open the document...&lt;/P&gt;&lt;P&gt;End If&lt;BR /&gt;end if&lt;BR /&gt;End Sub&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 07:31:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-msgbox-and-macro/m-p/1553981#M598046</guid>
      <dc:creator>alesnap111</dc:creator>
      <dc:date>2019-03-08T07:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with msgbox and macro</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-msgbox-and-macro/m-p/1554260#M598047</link>
      <description>Not sure if this would work but you can use Section Access to limit access to the document without resorting to macros. You would just assign a username and password for users and the application handles the rest.</description>
      <pubDate>Fri, 08 Mar 2019 13:38:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-msgbox-and-macro/m-p/1554260#M598047</guid>
      <dc:creator>wandererroch</dc:creator>
      <dc:date>2019-03-08T13:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with msgbox and macro</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-msgbox-and-macro/m-p/1554289#M598048</link>
      <description>&lt;P&gt;The macro-execution (regardless what is within the macro) could be easily bypassed. Therefore I doubt that's really suitable for what do you want to do. But the already mentioned section access might be a solution for your tasks.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 14:30:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-msgbox-and-macro/m-p/1554289#M598048</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-03-08T14:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with msgbox and macro</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-msgbox-and-macro/m-p/1554382#M598049</link>
      <description>&lt;P&gt;I already implemented Section Access and set module password, so Users cannot access to properties.&lt;/P&gt;&lt;P&gt;I found a solution to prompt for a password if trial period is expired.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub DisplayMessage()&lt;BR /&gt;if ActiveDocument.Evaluate("today() - makedate(2019,1,1)") &amp;gt; 0 then&lt;BR /&gt;Answer = MsgBox("Trial period expired",4,"Title")&lt;BR /&gt;If (Answer=6) and ActiveDocument.Evaluate("today() - makedate(2019,1,1)") &amp;gt; 0 Then&lt;BR /&gt;ActiveDocument.GetApplication.Quit&lt;BR /&gt;Else&lt;BR /&gt;if (Answer=7) and ActiveDocument.Evaluate("today() - makedate(2019,1,1)") &amp;gt; 0 then&lt;BR /&gt;myValue = InputBox("Password?")&lt;BR /&gt;if myValue = "MYPASSWORD" then&lt;BR /&gt;Msgbox "Welcome Admin"&lt;BR /&gt;else&lt;BR /&gt;ActiveDocument.GetApplication.Quit&lt;BR /&gt;End If&lt;BR /&gt;End if&lt;BR /&gt;End if&lt;BR /&gt;End if&lt;BR /&gt;End Sub&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 17:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-msgbox-and-macro/m-p/1554382#M598049</guid>
      <dc:creator>alesnap111</dc:creator>
      <dc:date>2019-03-08T17:28:21Z</dc:date>
    </item>
  </channel>
</rss>

