<?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 Conditional Running of Macro Based on Filename in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Running-of-Macro-Based-on-Filename/m-p/613092#M682134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;QVW filename : &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;expenses.qvw&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub ExportExcel()&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; Call ExportToExcel("tblExpenses","c:\expenses.xls")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub exportToExcel(objectId, filePath)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim O&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set O = ActiveDocument.GetSheetObject(objectId)&lt;/P&gt;&lt;P&gt;&amp;nbsp; O.ExportBiff filePath&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set O = Nothing&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm calling this macro upon successful reload, is there a way for me to run this only when the filename is = expenses2014.qvw?&lt;/P&gt;&lt;P&gt;Since the filename is expenses.qvw even i call the macro it should just end without executing any command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Mar 2014 08:48:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-24T08:48:03Z</dc:date>
    <item>
      <title>Conditional Running of Macro Based on Filename</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Running-of-Macro-Based-on-Filename/m-p/613092#M682134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;QVW filename : &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;expenses.qvw&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub ExportExcel()&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; Call ExportToExcel("tblExpenses","c:\expenses.xls")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub exportToExcel(objectId, filePath)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim O&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set O = ActiveDocument.GetSheetObject(objectId)&lt;/P&gt;&lt;P&gt;&amp;nbsp; O.ExportBiff filePath&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set O = Nothing&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm calling this macro upon successful reload, is there a way for me to run this only when the filename is = expenses2014.qvw?&lt;/P&gt;&lt;P&gt;Since the filename is expenses.qvw even i call the macro it should just end without executing any command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 08:48:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Running-of-Macro-Based-on-Filename/m-p/613092#M682134</guid>
      <dc:creator />
      <dc:date>2014-03-24T08:48:03Z</dc:date>
    </item>
  </channel>
</rss>

