<?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 PPT parameters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925213#M320193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating an export from qlikview to PowerPoint.&lt;/P&gt;&lt;P&gt;One of those ppt will be having over 40 slides, each of them will be exactly the same just filtered by different country.&lt;/P&gt;&lt;P&gt;Is there any way to write a Sub and use a country name as parameter and then just call that sub ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the trouble I have is that if I have following Sub:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub CreateCountry(slide_nr, CountryName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set PPSlide = PPPres.Slides(n)&lt;BR /&gt; set s=ActiveDocument.Sheets("SH11")&lt;BR /&gt; ActiveDocument.Sheets("SH11").Activate&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; Activedocument.fields("Country Project").select "CountryName"&lt;BR /&gt; ActiveDocument.GetSheetObject("CH09").CopyBitmapToClipboard&lt;BR /&gt; PPSlide.Shapes.Paste&lt;BR /&gt; call Fix_Picture_Size(0.49,0.1,0.4,0.2,PPSlide.Shapes(PPSlide.Shapes.Count),PPSlide.Master.Width)&lt;BR /&gt; Activedocument.fields("Country Name").Clear &lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then I call this Sub:&lt;/P&gt;&lt;P&gt;call CreateCountry(1, "United Kingdom")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't work...&lt;/P&gt;&lt;P&gt;Any ideas what I got wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Sep 2015 10:47:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-10T10:47:10Z</dc:date>
    <item>
      <title>PPT parameters</title>
      <link>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925213#M320193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating an export from qlikview to PowerPoint.&lt;/P&gt;&lt;P&gt;One of those ppt will be having over 40 slides, each of them will be exactly the same just filtered by different country.&lt;/P&gt;&lt;P&gt;Is there any way to write a Sub and use a country name as parameter and then just call that sub ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the trouble I have is that if I have following Sub:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub CreateCountry(slide_nr, CountryName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set PPSlide = PPPres.Slides(n)&lt;BR /&gt; set s=ActiveDocument.Sheets("SH11")&lt;BR /&gt; ActiveDocument.Sheets("SH11").Activate&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; Activedocument.fields("Country Project").select "CountryName"&lt;BR /&gt; ActiveDocument.GetSheetObject("CH09").CopyBitmapToClipboard&lt;BR /&gt; PPSlide.Shapes.Paste&lt;BR /&gt; call Fix_Picture_Size(0.49,0.1,0.4,0.2,PPSlide.Shapes(PPSlide.Shapes.Count),PPSlide.Master.Width)&lt;BR /&gt; Activedocument.fields("Country Name").Clear &lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then I call this Sub:&lt;/P&gt;&lt;P&gt;call CreateCountry(1, "United Kingdom")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It doesn't work...&lt;/P&gt;&lt;P&gt;Any ideas what I got wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 10:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925213#M320193</guid>
      <dc:creator />
      <dc:date>2015-09-10T10:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: PPT parameters</title>
      <link>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925214#M320194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look on this: &lt;A href="https://community.qlik.com/docs/DOC-3774"&gt;Automated PowerPoint Presentation Extraction&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 10:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925214#M320194</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-09-10T10:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: PPT parameters</title>
      <link>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925215#M320195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah it does the job, but this is not exactly what I ment.&lt;/P&gt;&lt;P&gt;I just want to know how to reference to the parameter of the function in&lt;/P&gt;&lt;P&gt;Activedocument.fields("Country Project").select "CountryName"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it will actually do the filtering.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 13:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925215#M320195</guid>
      <dc:creator />
      <dc:date>2015-09-10T13:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: PPT parameters</title>
      <link>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925216#M320196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case it should look more like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub CreateCountry(slide_nr, CountryName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set PPSlide = PPPres.Slides(&lt;STRONG&gt;slide_nr&lt;/STRONG&gt;)&lt;BR /&gt; set s=ActiveDocument.Sheets("SH11")&lt;BR /&gt; ActiveDocument.Sheets("SH11").Activate&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; Activedocument.fields("Country Project").select &lt;STRONG&gt;CountryName&lt;/STRONG&gt;&lt;BR /&gt; ActiveDocument.GetSheetObject("CH09").CopyBitmapToClipboard&lt;BR /&gt; PPSlide.Shapes.Paste&lt;BR /&gt; call Fix_Picture_Size(0.49,0.1,0.4,0.2,PPSlide.Shapes(PPSlide.Shapes.Count),PPSlide.Master.Width)&lt;BR /&gt; Activedocument.fields("Country Name").Clear &lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 13:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925216#M320196</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-09-10T13:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: PPT parameters</title>
      <link>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925217#M320197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, Thanks.&lt;/P&gt;&lt;P&gt;And how do I call that sub in the code for United Kingdom?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 13:34:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925217#M320197</guid>
      <dc:creator />
      <dc:date>2015-09-10T13:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: PPT parameters</title>
      <link>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925218#M320198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this way like you have done it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call CreateCountry(1, "United Kingdom")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 13:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925218#M320198</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-09-10T13:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: PPT parameters</title>
      <link>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925219#M320199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought so, but it doesn't work..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here is my Sub:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub CreateCountry(slide_nr, CountryName)&lt;BR /&gt; '****New York CB&amp;amp;S&lt;BR /&gt; 'Rag status&lt;BR /&gt; &lt;BR /&gt; Set PPSlide = PPPres.Slides(slide_nr)&lt;BR /&gt; set s=ActiveDocument.Sheets("SH11")&lt;BR /&gt; ActiveDocument.Sheets("SH11").Activate&lt;BR /&gt; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt; Activedocument.fields("Country Project").select CountryName&lt;BR /&gt; ActiveDocument.GetSheetObject("CH09").CopyBitmapToClipboard&lt;BR /&gt; PPSlide.Shapes.Paste&lt;BR /&gt; call Fix_Picture_Size(0.49,0.1,0.4,0.2,PPSlide.Shapes(PPSlide.Shapes.Count),PPSlide.Master.Width)&lt;BR /&gt; Activedocument.fields("Country Name").Clear&lt;BR /&gt; &lt;BR /&gt; End Sub &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how I call it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call CreateCountry(1,"New York CB&amp;amp;S") &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is just opening the Macro Window and does nothing.&lt;/P&gt;&lt;P&gt;Do you know whats wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 13:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925219#M320199</guid>
      <dc:creator />
      <dc:date>2015-09-10T13:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: PPT parameters</title>
      <link>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925220#M320200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, if this is the complete code then there are some missing things like createobject() - this meant you need at first create a powerpoint-instance. For this have a look on the link from my first answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 13:55:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925220#M320200</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-09-10T13:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: PPT parameters</title>
      <link>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925221#M320201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no it is not a complete code, I have the bit to open powerpoint and if I do the same without Sub it works perfectly.&lt;/P&gt;&lt;P&gt;So the problem needs to be in the way how I call the parameters?&lt;/P&gt;&lt;P&gt;Maybe with quotation signs?&lt;/P&gt;&lt;P&gt;But I already tried different configuration and nothing works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 13:57:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925221#M320201</guid>
      <dc:creator />
      <dc:date>2015-09-10T13:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: PPT parameters</title>
      <link>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925222#M320202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you tried it in this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;slide_nr = 1&lt;/P&gt;&lt;P&gt;CountryName = "New York CB&amp;amp;S"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call CreateCountry(slide_nr, CountryName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and used instead a sub-routine a &lt;STRONG&gt;public function&lt;/STRONG&gt;. I have excactly such callings which work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 14:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925222#M320202</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-09-10T14:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: PPT parameters</title>
      <link>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925223#M320203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did as you advice:&lt;/P&gt;&lt;P&gt;public function CreateCountry(slide_nr, CountryName)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;End function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and called with variables, as you suggested and still the same...&lt;/P&gt;&lt;P&gt;Not sure why it is doing it - do you have any other suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 14:28:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925223#M320203</guid>
      <dc:creator />
      <dc:date>2015-09-10T14:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: PPT parameters</title>
      <link>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925224#M320204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the reason aren't the call or the parameters - something else caused this error. I suggest you put some msgbox into the script to find out until which point the routine(s) runs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 14:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/PPT-parameters/m-p/925224#M320204</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-09-10T14:32:51Z</dc:date>
    </item>
  </channel>
</rss>

