<?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 Macro script not working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-script-not-working/m-p/596661#M220986</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me with the below script that is not working and I cannot figure out why??&lt;/P&gt;&lt;P&gt;The first message box came out but after that nothing more happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub UpdateCRCOutletCode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim myDIS_DistributorCode, myDIS_OutletCode, myCRC_Outlet_ID&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim tmpKey&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objCellFound&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myDIS_DistributorCode = ActiveDocument.Variables("vSelectedDistributorCode").GetContent().String&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myDIS_OutletCode = ActiveDocument.Variables("vSelectedOutletID").GetContent().String&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myCRC_Outlet_ID = ActiveDocument.Variables("vSelectedCRCOutletID").GetContent().String&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox(myDIS_DistributorCode)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Dim objShell&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set objShell = Wscript.CreateObject("WScript.Shell")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strVBS = "C:\Users\kohN01\Documents\CIS\TWN\CRC Replacement\Conceptual Solution Testing\Test.vbs"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objShell.Run strVBS &amp;amp; " " &amp;amp; myDIS_DistributorCode &amp;amp; " " &amp;amp; myDIS_OutletCode &amp;amp; " " &amp;amp; myCRC_Outlet_ID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objShell = Nothing&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help. Thx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;BR /&gt;Nickson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Mar 2014 09:00:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-03-04T09:00:53Z</dc:date>
    <item>
      <title>Macro script not working</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-script-not-working/m-p/596661#M220986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me with the below script that is not working and I cannot figure out why??&lt;/P&gt;&lt;P&gt;The first message box came out but after that nothing more happens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub UpdateCRCOutletCode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim myDIS_DistributorCode, myDIS_OutletCode, myCRC_Outlet_ID&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim tmpKey&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim objCellFound&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myDIS_DistributorCode = ActiveDocument.Variables("vSelectedDistributorCode").GetContent().String&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myDIS_OutletCode = ActiveDocument.Variables("vSelectedOutletID").GetContent().String&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; myCRC_Outlet_ID = ActiveDocument.Variables("vSelectedCRCOutletID").GetContent().String&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox(myDIS_DistributorCode)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Dim objShell&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Set objShell = Wscript.CreateObject("WScript.Shell")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strVBS = "C:\Users\kohN01\Documents\CIS\TWN\CRC Replacement\Conceptual Solution Testing\Test.vbs"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objShell.Run strVBS &amp;amp; " " &amp;amp; myDIS_DistributorCode &amp;amp; " " &amp;amp; myDIS_OutletCode &amp;amp; " " &amp;amp; myCRC_Outlet_ID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objShell = Nothing&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help. Thx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;BR /&gt;Nickson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Mar 2014 09:00:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-script-not-working/m-p/596661#M220986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-04T09:00:53Z</dc:date>
    </item>
  </channel>
</rss>

