<?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 Calling a macro from an external vbs file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calling-a-macro-from-an-external-vbs-file/m-p/213051#M66870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I was wondering if it is possible to call a macro which is sitting within a qvw document from an external vbs file. The idea is, I have a macro in multiple dashboards with different implementation but same name. So what I want to do is call this macro from the vbs file based on other conditions I have specified in the vbs file.&lt;/P&gt;&lt;P&gt;Thanks for your ideas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jan 2010 20:59:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-14T20:59:47Z</dc:date>
    <item>
      <title>Calling a macro from an external vbs file</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-a-macro-from-an-external-vbs-file/m-p/213051#M66870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I was wondering if it is possible to call a macro which is sitting within a qvw document from an external vbs file. The idea is, I have a macro in multiple dashboards with different implementation but same name. So what I want to do is call this macro from the vbs file based on other conditions I have specified in the vbs file.&lt;/P&gt;&lt;P&gt;Thanks for your ideas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 20:59:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-a-macro-from-an-external-vbs-file/m-p/213051#M66870</guid>
      <dc:creator />
      <dc:date>2010-01-14T20:59:47Z</dc:date>
    </item>
    <item>
      <title>Calling a macro from an external vbs file</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-a-macro-from-an-external-vbs-file/m-p/213052#M66871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I do not understand what you are trying to achieve ...&lt;/P&gt;&lt;P&gt;Could you give us a more detailed example?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 07:19:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-a-macro-from-an-external-vbs-file/m-p/213052#M66871</guid>
      <dc:creator />
      <dc:date>2010-01-20T07:19:00Z</dc:date>
    </item>
    <item>
      <title>Calling a macro from an external vbs file</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-a-macro-from-an-external-vbs-file/m-p/213053#M66872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U have not explained the scenario clearly .But u can exceute a macro from a VBS file for Example u can open a qlikview file from VBS and in the open u can call one macro and then u can call ur second macro .If u dont want to call the macro on open tell me when u want to call the macro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 08:24:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-a-macro-from-an-external-vbs-file/m-p/213053#M66872</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2010-01-20T08:24:08Z</dc:date>
    </item>
    <item>
      <title>Calling a macro from an external vbs file</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-a-macro-from-an-external-vbs-file/m-p/213054#M66873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for your replies.&lt;/P&gt;&lt;P&gt;The problem is solved now but I would describe the scenario.&lt;/P&gt;&lt;P&gt;I have a macro that has the same name across all the dashboards I have which is again connected to a bookmark in each of the dashboards but implemented in each case differently. For example, the macro could be called "Update Bookmark" in all the dashboards but the implementation is different in each of the dashboards. So I wanted to call this macro from my external vbs file. What I did now is, I opened the qvw files, created a temp button, assigned this button to the "Update Bookmark" macro, and finally using the press property I could get it run without triggering the macro on open or some other method. At the end, before I close the qvw file, I will remove/drop the button and save the file. This is exactly what I wanted to achieve. Of course there are other tasks related to this but are irrelevant here.&lt;/P&gt;&lt;P&gt;I thought about triggering the macros on open but the they are too complex and not really effective for what we are trying to get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2010 19:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-a-macro-from-an-external-vbs-file/m-p/213054#M66873</guid>
      <dc:creator />
      <dc:date>2010-01-20T19:06:40Z</dc:date>
    </item>
    <item>
      <title>Calling a macro from an external vbs file</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-a-macro-from-an-external-vbs-file/m-p/213055#M66874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, one question.. when you say "and in the open u can call one macro", do you mean on the open for the qlikview document (like on the on open action), or on the open doc on the VBS code you can call the macro? and if so, how can this be accomplished? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 21:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-a-macro-from-an-external-vbs-file/m-p/213055#M66874</guid>
      <dc:creator />
      <dc:date>2010-02-01T21:39:18Z</dc:date>
    </item>
    <item>
      <title>Calling a macro from an external vbs file</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-a-macro-from-an-external-vbs-file/m-p/213056#M66875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think qliksus meant the document that is open. what i did in my case is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;'Create a button to refresh bookmarks and run the macro XYZ&lt;/P&gt;&lt;P&gt;set RunMacro = ActiveDocument.ActiveSheet.CreateButton&lt;/P&gt;&lt;P&gt;button_id = right(RunMacro.GetObjectId, 4)&lt;/P&gt;&lt;P&gt;set prop = RunMacro.GetProperties&lt;/P&gt;&lt;P&gt;prop.Type = 2&lt;/P&gt;&lt;P&gt;prop.Macro = "XYZ"&lt;/P&gt;&lt;P&gt;RunMacro.SetProperties prop&lt;/P&gt;&lt;P&gt;-----other conditions omitted here for simplicity&lt;/P&gt;&lt;P&gt;RunMacro.Press&lt;/P&gt;&lt;P&gt;----other conditions omitted here for simplicity&lt;/P&gt;&lt;P&gt;call deleteButton&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'======================The following sub routine is also in your vbs file not in qvw file&lt;/P&gt;&lt;P&gt;sub deleteButton&lt;/P&gt;&lt;P&gt;set s=ActiveDocument.ActiveSheet&lt;/P&gt;&lt;P&gt;buttons=s.GetButtons&lt;/P&gt;&lt;P&gt;for j=lbound(buttons) to ubound(buttons)&lt;/P&gt;&lt;P&gt;if right(buttons(j).GetObjectId,4) = button_id then&lt;/P&gt;&lt;P&gt;buttons(j).Close&lt;/P&gt;&lt;P&gt;exit for&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;sub function&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;what i did is just, i created a button in the opened qv document, assigned it a macro from the qv document, run the macro by pressing the button, and finally called the delete button sub routine to delete the button. The only thing you need to know is just to know the name of the macro you want to run.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 22:59:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-a-macro-from-an-external-vbs-file/m-p/213056#M66875</guid>
      <dc:creator />
      <dc:date>2010-02-01T22:59:41Z</dc:date>
    </item>
    <item>
      <title>Calling a macro from an external vbs file</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-a-macro-from-an-external-vbs-file/m-p/213057#M66876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The prop.Macro and prop.Type = 2 are obsolete in QlikView 9. Any one knows what member functions can be used to obtain the same behavior from a vbs script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Aug 2010 23:21:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-a-macro-from-an-external-vbs-file/m-p/213057#M66876</guid>
      <dc:creator />
      <dc:date>2010-08-10T23:21:45Z</dc:date>
    </item>
    <item>
      <title>Calling a macro from an external vbs file</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-a-macro-from-an-external-vbs-file/m-p/213058#M66877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at Action items in the API. Action replaces macros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 01:39:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-a-macro-from-an-external-vbs-file/m-p/213058#M66877</guid>
      <dc:creator />
      <dc:date>2010-08-11T01:39:59Z</dc:date>
    </item>
  </channel>
</rss>

