<?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: VBA And Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/VBA-And-Macro/m-p/1637804#M446953</link>
    <description>&lt;P&gt;It's really hard to answer this question without seeing the macro code.&lt;/P&gt;</description>
    <pubDate>Mon, 21 Oct 2019 12:42:01 GMT</pubDate>
    <dc:creator>m_woolf</dc:creator>
    <dc:date>2019-10-21T12:42:01Z</dc:date>
    <item>
      <title>VBA And Macro</title>
      <link>https://community.qlik.com/t5/QlikView/VBA-And-Macro/m-p/1637437#M446925</link>
      <description>&lt;P&gt;Hi all, i have a simple VBA file to reload an application.&lt;/P&gt;&lt;P&gt;In this QV i have a macro that export some images. The problem is it won't run the macro right, it's just open the macro window.&lt;/P&gt;&lt;P&gt;So my question is&amp;nbsp; there is possible to run this macro in the VBS fil?&lt;/P&gt;&lt;P&gt;Export images into a location in the computer?&lt;BR /&gt;&lt;BR /&gt;Br&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2019 10:13:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBA-And-Macro/m-p/1637437#M446925</guid>
      <dc:creator>johnan</dc:creator>
      <dc:date>2019-10-19T10:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: VBA And Macro</title>
      <link>https://community.qlik.com/t5/QlikView/VBA-And-Macro/m-p/1637804#M446953</link>
      <description>&lt;P&gt;It's really hard to answer this question without seeing the macro code.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 12:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBA-And-Macro/m-p/1637804#M446953</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2019-10-21T12:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: VBA And Macro</title>
      <link>https://community.qlik.com/t5/QlikView/VBA-And-Macro/m-p/1637828#M446955</link>
      <description>&lt;P&gt;Here you go!&lt;/P&gt;&lt;P&gt;function exportImages&lt;BR /&gt;' Test if export should be made&lt;BR /&gt;set v = ActiveDocument.Variables("RunNow")&lt;BR /&gt;if v.GetContent.String = "Yes" then&lt;BR /&gt;v.SetContent "No",true&lt;BR /&gt;exportAll&lt;BR /&gt;ActiveDocument.GetApplication.Quit&lt;BR /&gt;end if&lt;BR /&gt;end function&lt;/P&gt;&lt;P&gt;function exportAll&lt;BR /&gt;export("CH97")&lt;BR /&gt;export ("TX09")&lt;BR /&gt;end function&lt;/P&gt;&lt;P&gt;function export(chartId)&lt;BR /&gt;set obj = ActiveDocument.GetSheetObject(chartId)&lt;BR /&gt;obj.ExportBitmapToFile "C:\inetpub\wwwroot\as400\UTL\Chart_" &amp;amp; chartId &amp;amp; ".png"&lt;BR /&gt;end function&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 13:20:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBA-And-Macro/m-p/1637828#M446955</guid>
      <dc:creator>johnan</dc:creator>
      <dc:date>2019-10-21T13:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: VBA And Macro</title>
      <link>https://community.qlik.com/t5/QlikView/VBA-And-Macro/m-p/1637856#M446958</link>
      <description>&lt;P&gt;Hi! if the macro window is opened when you run it it is because there is an error in your code. You can use the "test" button to locate the error and get some info:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="testVBS2.png" style="width: 185px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22019i2CFDEBF398481601/image-size/medium?v=v2&amp;amp;px=400" role="button" title="testVBS2.png" alt="testVBS2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other hand, yes, what you need can be done. I checked your code and it runs perfectly in my computer. Check objects IDs, check that those objects are visible, check the path where you save the pics and verify that you allow system acces&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="testVBS.png" style="width: 174px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/22017i97131944AE68161D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="testVBS.png" alt="testVBS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jaime.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 13:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBA-And-Macro/m-p/1637856#M446958</guid>
      <dc:creator>jaibau1993</dc:creator>
      <dc:date>2019-10-21T13:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: VBA And Macro</title>
      <link>https://community.qlik.com/t5/QlikView/VBA-And-Macro/m-p/1637876#M446960</link>
      <description>&lt;P&gt;I have testit, and get memory problems and strange errors.. Sometime it works, sometime not.&lt;/P&gt;&lt;P&gt;Can i run a batfile? Like this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"C:\Program Files\QlikView\Qv.exe" /I /r "C:\Qv\ManifestOrdersBILD.qvw"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i run above, the qlikview will not reload it &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 14:14:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBA-And-Macro/m-p/1637876#M446960</guid>
      <dc:creator>johnan</dc:creator>
      <dc:date>2019-10-21T14:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: VBA And Macro</title>
      <link>https://community.qlik.com/t5/QlikView/VBA-And-Macro/m-p/1639498#M447083</link>
      <description>&lt;P&gt;Johnan, I believe the /r and /l are mutually exclusive, one or the other in regard to those, I will try to confirm, but I suspect that is why things are not working for you, if you do one or the other there, I suspect that should get things working.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Starting_QlikView.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Starting_QlikView.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I am going to submit a doc defect regarding the fact this is not clear in the Help, but I did confer with a coworker and he thought the same thing, so I am pretty sure we are correct here, you have to use the /r or /l...&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 12:53:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBA-And-Macro/m-p/1639498#M447083</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-10-24T12:53:27Z</dc:date>
    </item>
  </channel>
</rss>

