<?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: How compare the actual date and time with a variable create in VB macro? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-compare-the-actual-date-and-time-with-a-variable-create-in/m-p/680188#M246675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To assign variables use Set (or Let) so:&lt;/P&gt;&lt;P&gt;Let &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vDateAtual = now()&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Oct 2014 18:53:07 GMT</pubDate>
    <dc:creator>stigchel</dc:creator>
    <dc:date>2014-10-22T18:53:07Z</dc:date>
    <item>
      <title>How compare the actual date and time with a variable create in VB macro?</title>
      <link>https://community.qlik.com/t5/QlikView/How-compare-the-actual-date-and-time-with-a-variable-create-in/m-p/680187#M246674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How compare the actual date and time with a variable create in VB macro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this code, but the result is always "exit" independing what my test time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub testa_horario()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vDateAtual = now()&lt;/P&gt;&lt;P&gt;vDate = date()&amp;amp;" 11:00:00"&lt;/P&gt;&lt;P&gt;if vDateAtual &amp;gt; vDate then&lt;/P&gt;&lt;P&gt;msgbox("run macro II")&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;msgbox("exit")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End if&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;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 18:42:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-compare-the-actual-date-and-time-with-a-variable-create-in/m-p/680187#M246674</guid>
      <dc:creator />
      <dc:date>2014-10-22T18:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: How compare the actual date and time with a variable create in VB macro?</title>
      <link>https://community.qlik.com/t5/QlikView/How-compare-the-actual-date-and-time-with-a-variable-create-in/m-p/680188#M246675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To assign variables use Set (or Let) so:&lt;/P&gt;&lt;P&gt;Let &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vDateAtual = now()&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 18:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-compare-the-actual-date-and-time-with-a-variable-create-in/m-p/680188#M246675</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-10-22T18:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: How compare the actual date and time with a variable create in VB macro?</title>
      <link>https://community.qlik.com/t5/QlikView/How-compare-the-actual-date-and-time-with-a-variable-create-in/m-p/680189#M246676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the difference between Let and Set see e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/115224"&gt;use of SET and LET in script&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 18:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-compare-the-actual-date-and-time-with-a-variable-create-in/m-p/680189#M246676</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2014-10-22T18:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: How compare the actual date and time with a variable create in VB macro?</title>
      <link>https://community.qlik.com/t5/QlikView/How-compare-the-actual-date-and-time-with-a-variable-create-in/m-p/680190#M246677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, but I need create and compare the variables in a macro, no in the load script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 19:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-compare-the-actual-date-and-time-with-a-variable-create-in/m-p/680190#M246677</guid>
      <dc:creator />
      <dc:date>2014-10-22T19:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: How compare the actual date and time with a variable create in VB macro?</title>
      <link>https://community.qlik.com/t5/QlikView/How-compare-the-actual-date-and-time-with-a-variable-create-in/m-p/680191#M246678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should do it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub testa_horario()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vDateAtual = Now()&lt;/P&gt;&lt;P&gt;vDate = &lt;STRONG&gt;cdate&lt;/STRONG&gt;(date()&amp;amp;" 11:00:00")&lt;/P&gt;&lt;P&gt;if vDateAtual &amp;gt; vDate then&lt;/P&gt;&lt;P&gt;msgbox("run macro II")&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;msgbox("exit")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 20:08:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-compare-the-actual-date-and-time-with-a-variable-create-in/m-p/680191#M246678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-22T20:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: How compare the actual date and time with a variable create in VB macro?</title>
      <link>https://community.qlik.com/t5/QlikView/How-compare-the-actual-date-and-time-with-a-variable-create-in/m-p/680192#M246679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works! Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 20:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-compare-the-actual-date-and-time-with-a-variable-create-in/m-p/680192#M246679</guid>
      <dc:creator />
      <dc:date>2014-10-22T20:50:19Z</dc:date>
    </item>
  </channel>
</rss>

