<?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 Email macro for Salutation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Email-macro-for-Salutation/m-p/1139071#M373547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I'm new to Qlikview macros and wondered how I can change the salutation on a email macro I have depending on the time of day i.e. Good Morning or Good Afternoon.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The body variable starts - strbody = "&amp;lt;font size=""3"" face=""Calibri""&amp;gt;" &amp;amp; "&lt;SPAN style="text-decoration: underline;"&gt;Morning&lt;/SPAN&gt;,&amp;lt;br&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; so where it says Morning, I would like to put in another variable created earlier in the code to state Morning or Afternoon.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;This is how I would do it in Excel&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Select Case Time&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; Case Is &amp;lt; TimeValue("12:00")&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; msg = "Good morning "&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; Case Is &amp;lt; TimeValue("16:00")&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; msg = "Good afternoon "&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; Case Else&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; msg = "Good evening "&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; End Select&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jul 2016 15:28:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-25T15:28:33Z</dc:date>
    <item>
      <title>Email macro for Salutation</title>
      <link>https://community.qlik.com/t5/QlikView/Email-macro-for-Salutation/m-p/1139071#M373547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I'm new to Qlikview macros and wondered how I can change the salutation on a email macro I have depending on the time of day i.e. Good Morning or Good Afternoon.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;The body variable starts - strbody = "&amp;lt;font size=""3"" face=""Calibri""&amp;gt;" &amp;amp; "&lt;SPAN style="text-decoration: underline;"&gt;Morning&lt;/SPAN&gt;,&amp;lt;br&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; so where it says Morning, I would like to put in another variable created earlier in the code to state Morning or Afternoon.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;This is how I would do it in Excel&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Select Case Time&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; Case Is &amp;lt; TimeValue("12:00")&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; msg = "Good morning "&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; Case Is &amp;lt; TimeValue("16:00")&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; msg = "Good afternoon "&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; Case Else&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; msg = "Good evening "&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; End Select&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2016 15:28:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Email-macro-for-Salutation/m-p/1139071#M373547</guid>
      <dc:creator />
      <dc:date>2016-07-25T15:28:33Z</dc:date>
    </item>
  </channel>
</rss>

