<?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: How do I loop through all files in a folder in a macro? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-I-loop-through-all-files-in-a-folder-in-a-macro/m-p/1341264#M614609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Griffin,&lt;/P&gt;&lt;P&gt;Not sure if you're still working on this but I found Michael Anthony's solution on the below thread to be very helpful.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/295842"&gt;search for filenames in a directory within a macro&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I used this loop to convert XML to Excel XLS format for all files in a folder, I trust you'll also find this to be very useful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ryan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Oct 2017 01:01:00 GMT</pubDate>
    <dc:creator>milkyryan</dc:creator>
    <dc:date>2017-10-23T01:01:00Z</dc:date>
    <item>
      <title>How do I loop through all files in a folder in a macro?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-loop-through-all-files-in-a-folder-in-a-macro/m-p/1341263#M614608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a macro that I want to run for every file in a particular folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. At the moment I have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Macro ()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Macro code)&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want something along the lines of:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Sub Macro ()&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Set folder = 'C:\TEMP\'&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For each file in folder&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Macro code)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Next file&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the correct code I should be putting in to get it doing the rest of my code for each file in the folder?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Neil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 14:51:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-loop-through-all-files-in-a-folder-in-a-macro/m-p/1341263#M614608</guid>
      <dc:creator />
      <dc:date>2017-07-06T14:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I loop through all files in a folder in a macro?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-I-loop-through-all-files-in-a-folder-in-a-macro/m-p/1341264#M614609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Griffin,&lt;/P&gt;&lt;P&gt;Not sure if you're still working on this but I found Michael Anthony's solution on the below thread to be very helpful.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/295842"&gt;search for filenames in a directory within a macro&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I used this loop to convert XML to Excel XLS format for all files in a folder, I trust you'll also find this to be very useful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ryan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 01:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-I-loop-through-all-files-in-a-folder-in-a-macro/m-p/1341264#M614609</guid>
      <dc:creator>milkyryan</dc:creator>
      <dc:date>2017-10-23T01:01:00Z</dc:date>
    </item>
  </channel>
</rss>

