<?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: Help with Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-Macro/m-p/336872#M1169080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I google vbscript delete file, I find:&lt;/P&gt;&lt;P&gt;Set obj = CreateObject("Scripting.FileSystemObject") 'Calls the File System Object&amp;nbsp; &lt;/P&gt;&lt;P&gt;obj.DeleteFile("C:\MyFolder\MyFile.txt") 'Deletes the file throught the DeleteFile function &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2012 19:42:22 GMT</pubDate>
    <dc:creator>m_woolf</dc:creator>
    <dc:date>2012-08-03T19:42:22Z</dc:date>
    <item>
      <title>Help with Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Macro/m-p/336871#M1169079</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;I have a macro that exports an object into excel and saves it and emails it to multiple recipients.&lt;/P&gt;&lt;P&gt;Can anyone tell me what command i would use to also delete the file please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the Export part of the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Export1&lt;BR /&gt;theDate = Right(String(2,"0") &amp;amp;&amp;nbsp; Day(Now()),2) _ &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp; Right(String(2,"0") &amp;amp; month(Now()),2) _&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp; Year(Now()) &lt;/P&gt;&lt;P&gt;ActiveDocument.ClearAll false&lt;BR /&gt;pathcorp="C:\TEST\"&lt;BR /&gt;set corp = ActiveDocument.GetSheetObject("TB05")&lt;BR /&gt;corp.ExportBiff&amp;nbsp; pathcorp &amp;amp; "TEST - " &amp;amp; theDate &amp;amp; ".xls"&lt;/P&gt;&lt;P&gt;set MyTable = ActiveDocument.GetSheetObject("TB05")&lt;BR /&gt;path="C:\TEST\"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;Set XLApp = Nothing&lt;BR /&gt;Set Table = Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 12:04:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Macro/m-p/336871#M1169079</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2012-08-03T12:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-Macro/m-p/336872#M1169080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I google vbscript delete file, I find:&lt;/P&gt;&lt;P&gt;Set obj = CreateObject("Scripting.FileSystemObject") 'Calls the File System Object&amp;nbsp; &lt;/P&gt;&lt;P&gt;obj.DeleteFile("C:\MyFolder\MyFile.txt") 'Deletes the file throught the DeleteFile function &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 19:42:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-Macro/m-p/336872#M1169080</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2012-08-03T19:42:22Z</dc:date>
    </item>
  </channel>
</rss>

