<?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 Type Mismatch Error on MonthEnd Function in Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Type-Mismatch-Error-on-MonthEnd-Function-in-Macro/m-p/262657#M498954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Man, That was a silly mistake.... now i need to go to some vbscript forum &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; to get the month end function as i am not good in programming stuff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jul 2011 06:34:03 GMT</pubDate>
    <dc:creator>shumailh</dc:creator>
    <dc:date>2011-07-07T06:34:03Z</dc:date>
    <item>
      <title>Type Mismatch Error on MonthEnd Function in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Type-Mismatch-Error-on-MonthEnd-Function-in-Macro/m-p/262655#M498952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;I am using below macro and getting type mismatch error on &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;&lt;EM&gt;MonthEnd Fucntion&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt; while executing &lt;STRONG&gt;macro &lt;/STRONG&gt;on &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;onSelect Field Event&lt;/STRONG&gt;&lt;/SPAN&gt; Below is a Macro.&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P&gt;&lt;STRONG style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;sub&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; Update_PrevMonth()&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt;&lt;STRONG style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;Set&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; v = ActiveDocument.Variables(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;"PrevMonth"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: 0.5in;"&gt;&lt;STRONG style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;v.setcontent MonthName&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt;(MonthEnd(LoadDate_Active-Day(LoadDate_Active))), &lt;/SPAN&gt;&lt;STRONG style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;true&lt;/STRONG&gt;&lt;SPAN style="font-size: 9pt; color: black; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;end&lt;/STRONG&gt; &lt;STRONG style="font-size: 9pt; color: blue; font-family: 'Courier New';"&gt;sub&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; height: 8pt;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Can anyone please help?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Shumail Hussain&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; height: 8pt;"&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Reference :&lt;A _jive_internal="true" href="https://community.qlik.com/message/83724#83724"&gt;http://community.qlik.com/message/83724#83724&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 06:10:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Type-Mismatch-Error-on-MonthEnd-Function-in-Macro/m-p/262655#M498952</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2011-07-07T06:10:48Z</dc:date>
    </item>
    <item>
      <title>Type Mismatch Error on MonthEnd Function in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Type-Mismatch-Error-on-MonthEnd-Function-in-Macro/m-p/262656#M498953</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;&amp;nbsp;&amp;nbsp; This is because you are using Monthend() function which is not a valid vbscript function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; This function is available in qlikview. And you can not use qlikview functions in Macros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Try some other logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 06:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Type-Mismatch-Error-on-MonthEnd-Function-in-Macro/m-p/262656#M498953</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2011-07-07T06:18:39Z</dc:date>
    </item>
    <item>
      <title>Type Mismatch Error on MonthEnd Function in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Type-Mismatch-Error-on-MonthEnd-Function-in-Macro/m-p/262657#M498954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Man, That was a silly mistake.... now i need to go to some vbscript forum &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; to get the month end function as i am not good in programming stuff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 06:34:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Type-Mismatch-Error-on-MonthEnd-Function-in-Macro/m-p/262657#M498954</guid>
      <dc:creator>shumailh</dc:creator>
      <dc:date>2011-07-07T06:34:03Z</dc:date>
    </item>
  </channel>
</rss>

