<?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 Run a macro from bat file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Run-a-macro-from-bat-file/m-p/340336#M1275198</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;&lt;/P&gt;&lt;P&gt;Can you run a macro from a bat file? I can't use a trigger on reload or open to activate the macro as the qvw is reloaded on the Server, then copied to another machine/location so it can be opened by this bat file and the macro run to export bitmaps that a Videowall uses. If I ran the macro on open or reload, that macro would run on the Qlikview server which is what I'm trying to avoid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my bat script if it helps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COPY "\\&amp;lt;serverlocation&amp;gt;\VideoWall.qvw" "\\&amp;lt;Videowalllocation&amp;gt;\"&lt;/P&gt;&lt;P&gt;START "My script" /Max "C:\Program Files\QlikView\Qv.exe" \\&amp;lt;Videowalllocation&amp;gt;\VideoWall.qvw"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried using vbs to run the macro, however wierdly it appears to open the Qlikview application twice as the instruction from a vbs script requires OpenDoc e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set Qv = CreateObject("QlikTech.QlikView")&lt;/P&gt;&lt;P&gt;Set QvDoc = Qv.OpenDoc (&lt;A _jive_internal="true" href="https://community.qlik.com/message/245658" target="_blank"&gt;\\&amp;lt;Videowalllocation&amp;gt;\VideoWall.qvw&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't not open the app in the bat as if I open it in vbs it does not maximise the app so the bitmap exports are not of the entire page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or advice will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Derek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
    <dc:creator>derekjones</dc:creator>
    <dc:date>2026-01-26T18:19:17Z</dc:date>
    <item>
      <title>Run a macro from bat file</title>
      <link>https://community.qlik.com/t5/QlikView/Run-a-macro-from-bat-file/m-p/340336#M1275198</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;&lt;/P&gt;&lt;P&gt;Can you run a macro from a bat file? I can't use a trigger on reload or open to activate the macro as the qvw is reloaded on the Server, then copied to another machine/location so it can be opened by this bat file and the macro run to export bitmaps that a Videowall uses. If I ran the macro on open or reload, that macro would run on the Qlikview server which is what I'm trying to avoid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my bat script if it helps?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COPY "\\&amp;lt;serverlocation&amp;gt;\VideoWall.qvw" "\\&amp;lt;Videowalllocation&amp;gt;\"&lt;/P&gt;&lt;P&gt;START "My script" /Max "C:\Program Files\QlikView\Qv.exe" \\&amp;lt;Videowalllocation&amp;gt;\VideoWall.qvw"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried using vbs to run the macro, however wierdly it appears to open the Qlikview application twice as the instruction from a vbs script requires OpenDoc e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set Qv = CreateObject("QlikTech.QlikView")&lt;/P&gt;&lt;P&gt;Set QvDoc = Qv.OpenDoc (&lt;A _jive_internal="true" href="https://community.qlik.com/message/245658" target="_blank"&gt;\\&amp;lt;Videowalllocation&amp;gt;\VideoWall.qvw&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't not open the app in the bat as if I open it in vbs it does not maximise the app so the bitmap exports are not of the entire page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or advice will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Derek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-a-macro-from-bat-file/m-p/340336#M1275198</guid>
      <dc:creator>derekjones</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
  </channel>
</rss>

