<?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: Macro: List box Value Selection and copying report to excel then mailing in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-List-box-Value-Selection-and-copying-report-to-excel-then/m-p/406325#M570724</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that's possible. I think these threads can help you: &lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/thread/31454" title="http://community.qlik.com/thread/31454"&gt;http://community.qlik.com/thread/31454&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/thread/30095" title="http://community.qlik.com/thread/30095"&gt;http://community.qlik.com/thread/30095&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Oct 2012 18:41:16 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2012-10-13T18:41:16Z</dc:date>
    <item>
      <title>Macro: List box Value Selection and copying report to excel then mailing</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-List-box-Value-Selection-and-copying-report-to-excel-then/m-p/406322#M570721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to create a macro which selects a particular value of a field, copy the pivot chart to excel and mail it to particular recepients on a Tuesday every week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found success in copying the pivot chart to excel and mailing it by creating a button. Inside, in Actions tab selecting External and Run macro and editing the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i am unable to do is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How to include conditions that select value of a field, in turn the chart modifies and then mailing it.&lt;/LI&gt;&lt;LI&gt;How to automate the process, so on a Tuesday when the data reloads, last week's summary is mailed to particular persons.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 16:54:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-List-box-Value-Selection-and-copying-report-to-excel-then/m-p/406322#M570721</guid>
      <dc:creator />
      <dc:date>2012-10-11T16:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Macro: List box Value Selection and copying report to excel then mailing</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-List-box-Value-Selection-and-copying-report-to-excel-then/m-p/406323#M570722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's probably easier to create a bookmark instead and activite the bookmark with a OnPostReload trigger.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 17:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-List-box-Value-Selection-and-copying-report-to-excel-then/m-p/406323#M570722</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-11T17:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Macro: List box Value Selection and copying report to excel then mailing</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-List-box-Value-Selection-and-copying-report-to-excel-then/m-p/406324#M570723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But can we create dynamic bookmarks in qlikview, since i wanted last weeks data to be sent via mail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 14:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-List-box-Value-Selection-and-copying-report-to-excel-then/m-p/406324#M570723</guid>
      <dc:creator />
      <dc:date>2012-10-12T14:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Macro: List box Value Selection and copying report to excel then mailing</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-List-box-Value-Selection-and-copying-report-to-excel-then/m-p/406325#M570724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that's possible. I think these threads can help you: &lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/thread/31454" title="http://community.qlik.com/thread/31454"&gt;http://community.qlik.com/thread/31454&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/thread/30095" title="http://community.qlik.com/thread/30095"&gt;http://community.qlik.com/thread/30095&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Oct 2012 18:41:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-List-box-Value-Selection-and-copying-report-to-excel-then/m-p/406325#M570724</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-13T18:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Macro: List box Value Selection and copying report to excel then mailing</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-List-box-Value-Selection-and-copying-report-to-excel-then/m-p/406326#M570725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your advice, I can now create dynamic bookmarks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two things I want to do now &lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Check&lt;/STRONG&gt; if the &lt;STRONG&gt;day&lt;/STRONG&gt; is a &lt;STRONG&gt;"tue"&lt;/STRONG&gt;. &lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Check&lt;/STRONG&gt; if a particular value of a &lt;STRONG&gt;field is present&lt;/STRONG&gt; ...&lt;STRONG&gt;if yes&lt;/STRONG&gt;..&lt;STRONG&gt;select the value&lt;/STRONG&gt; and do .....if no do.....&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; All this i prefer to write in a &lt;STRONG&gt;macro&lt;/STRONG&gt;. Can anyone hardcode it for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 12:23:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-List-box-Value-Selection-and-copying-report-to-excel-then/m-p/406326#M570725</guid>
      <dc:creator />
      <dc:date>2012-10-15T12:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Macro: List box Value Selection and copying report to excel then mailing</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-List-box-Value-Selection-and-copying-report-to-excel-then/m-p/406327#M570726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If&amp;nbsp; DatePart("w",Date()) = 3 then &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'do tuesday stuff&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'do other days stuff&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ActiveDocument.Fields("Month").Select "September" then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'September was selected, do the september stuff&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'September could not be selected, do the other stuff&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Oct 2012 17:26:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-List-box-Value-Selection-and-copying-report-to-excel-then/m-p/406327#M570726</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-20T17:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Macro: List box Value Selection and copying report to excel then mailing</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-List-box-Value-Selection-and-copying-report-to-excel-then/m-p/406328#M570727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I follow this and it gives me&amp;nbsp;&amp;nbsp; Expected'Then'&amp;nbsp;&amp;nbsp;&amp;nbsp; kind of error. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 17:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-List-box-Value-Selection-and-copying-report-to-excel-then/m-p/406328#M570727</guid>
      <dc:creator />
      <dc:date>2012-10-22T17:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Macro: List box Value Selection and copying report to excel then mailing</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-List-box-Value-Selection-and-copying-report-to-excel-then/m-p/406329#M570728</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s = ActiveDocument.Evaluate("GetFieldSelections(Month)")&lt;/P&gt;&lt;P&gt;if s = 'September' then&lt;/P&gt;&lt;P&gt;'do something&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;'do something&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;Sorry,&amp;nbsp; i misunderstand the concept..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 17:31:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-List-box-Value-Selection-and-copying-report-to-excel-then/m-p/406329#M570728</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-10-22T17:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Macro: List box Value Selection and copying report to excel then mailing</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-List-box-Value-Selection-and-copying-report-to-excel-then/m-p/406330#M570729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ActiveDocument.Fields("Month").Select("September") does not do what I expect (at least not in QV10, maybe in QV11 it does work). You'll need something like this instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flag=0&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("Month").Select("September")&lt;/P&gt;&lt;P&gt;set val=ActiveDocument.Fields("Month").GetSelectedValues&lt;/P&gt;&lt;P&gt;for i=0 to val.Count-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if val.Item(i).text = "September" then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flag=1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if flag=1 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'September was selected, do the september stuff&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'September could not be selected, do the other stuff&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 18:03:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-List-box-Value-Selection-and-copying-report-to-excel-then/m-p/406330#M570729</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-10-22T18:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Macro: List box Value Selection and copying report to excel then mailing</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-List-box-Value-Selection-and-copying-report-to-excel-then/m-p/406331#M570730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If&amp;nbsp; DatePart("w",Date()) = 3 then &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'do tuesday stuff&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'do other days stuff&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ActiveDocument.Fields("Month").Select("September") then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'September was selected, do the september stuff&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'September could not be selected, do the other stuff&lt;/P&gt;&lt;P&gt;End if&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 18:03:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-List-box-Value-Selection-and-copying-report-to-excel-then/m-p/406331#M570730</guid>
      <dc:creator />
      <dc:date>2012-10-22T18:03:58Z</dc:date>
    </item>
  </channel>
</rss>

