<?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 Dynamic date period Selection by using Macro's(VBscript)? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-date-period-Selection-by-using-Macro-s-VBscript/m-p/838878#M294890</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;I have a requirement like as,i have a dash board in that i have&lt;STRONG&gt; DATE PERIOD&lt;/STRONG&gt;,one &lt;STRONG&gt;Strait table,and two more table are there&lt;/STRONG&gt;.So i have selected a date from &lt;STRONG&gt;DATE PERIOD(1/05/2015-12/05/2015)&lt;/STRONG&gt; by manually meanwhile the data will be filtered.Once the filtering done it goes to excel automatically because already macro's were written for this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) However i want to select this &lt;STRONG&gt;dates dynamically&lt;/STRONG&gt; not by manually,it means if the tomorrow's date will be 24/05/2015 then i want to select this date by dynamically and that too i have to write by using macro's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) After that i have to attach this filtered data which was exported to excel report to a &lt;STRONG&gt;mail&lt;/STRONG&gt; for sending to another mail by using &lt;STRONG&gt;macro's&lt;/STRONG&gt; only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me on this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chirumamilla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 May 2015 05:08:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-23T05:08:04Z</dc:date>
    <item>
      <title>Dynamic date period Selection by using Macro's(VBscript)?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-date-period-Selection-by-using-Macro-s-VBscript/m-p/838878#M294890</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;I have a requirement like as,i have a dash board in that i have&lt;STRONG&gt; DATE PERIOD&lt;/STRONG&gt;,one &lt;STRONG&gt;Strait table,and two more table are there&lt;/STRONG&gt;.So i have selected a date from &lt;STRONG&gt;DATE PERIOD(1/05/2015-12/05/2015)&lt;/STRONG&gt; by manually meanwhile the data will be filtered.Once the filtering done it goes to excel automatically because already macro's were written for this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) However i want to select this &lt;STRONG&gt;dates dynamically&lt;/STRONG&gt; not by manually,it means if the tomorrow's date will be 24/05/2015 then i want to select this date by dynamically and that too i have to write by using macro's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) After that i have to attach this filtered data which was exported to excel report to a &lt;STRONG&gt;mail&lt;/STRONG&gt; for sending to another mail by using &lt;STRONG&gt;macro's&lt;/STRONG&gt; only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me on this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chirumamilla&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 May 2015 05:08:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-date-period-Selection-by-using-Macro-s-VBscript/m-p/838878#M294890</guid>
      <dc:creator />
      <dc:date>2015-05-23T05:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic date period Selection by using Macro's(VBscript)?</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-date-period-Selection-by-using-Macro-s-VBscript/m-p/838879#M294891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could simply use &lt;STRONG&gt;date&lt;/STRONG&gt; to return the current date and then select your field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocuments.Fields("Date").Select &lt;STRONG&gt;date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you need some adjustment to the format from date. Unfortunately is vbscript by formatting not very flexible so that often combined date-parts will be needed, like: day(date) &amp;amp; "/" &amp;amp; month(date) ... Easier could be to use numeric field-variants for this and then: cdbl(date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 May 2015 07:57:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-date-period-Selection-by-using-Macro-s-VBscript/m-p/838879#M294891</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-05-23T07:57:01Z</dc:date>
    </item>
  </channel>
</rss>

