<?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 Browsing for a folder Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Browsing-for-a-folder-Macro/m-p/887763#M309449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlikers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have yet another question. Using the application posted on here -&amp;gt; &lt;A href="https://community.qlik.com/message/230160"&gt;Re: How to browse a folder and get file using external macro in qlikview?&lt;/A&gt; I have gotten to a point where I can let the user browse for a file and then do a partial reload to load additional data. I only have two issues:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If I press on Browse and click Cancel for some reason it takes me to the Edit Module window. I don't want that to happen for the user. If the press cancel, they go back to the original screen where they can make changes. Is there a way to achieve this?&lt;/LI&gt;&lt;LI&gt;Second issue is related to module security access. This particular macro requires system access, but user may or may not have already assigned that access, is there a more efficient way (beside Ctrl + Shift + M) to achieve this? (May be like a button??) (I have asked this question here -&amp;gt; &lt;A href="https://community.qlik.com/thread/161291"&gt;Button for QlikView Shortcuts?&lt;/A&gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this would be greatly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2015 18:43:03 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-04-22T18:43:03Z</dc:date>
    <item>
      <title>Browsing for a folder Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Browsing-for-a-folder-Macro/m-p/887763#M309449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Qlikers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have yet another question. Using the application posted on here -&amp;gt; &lt;A href="https://community.qlik.com/message/230160"&gt;Re: How to browse a folder and get file using external macro in qlikview?&lt;/A&gt; I have gotten to a point where I can let the user browse for a file and then do a partial reload to load additional data. I only have two issues:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;If I press on Browse and click Cancel for some reason it takes me to the Edit Module window. I don't want that to happen for the user. If the press cancel, they go back to the original screen where they can make changes. Is there a way to achieve this?&lt;/LI&gt;&lt;LI&gt;Second issue is related to module security access. This particular macro requires system access, but user may or may not have already assigned that access, is there a more efficient way (beside Ctrl + Shift + M) to achieve this? (May be like a button??) (I have asked this question here -&amp;gt; &lt;A href="https://community.qlik.com/thread/161291"&gt;Button for QlikView Shortcuts?&lt;/A&gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this would be greatly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 18:43:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Browsing-for-a-folder-Macro/m-p/887763#M309449</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-22T18:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Browsing for a folder Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Browsing-for-a-folder-Macro/m-p/887764#M309450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If anybody is curious, I was able to resolve the first issue where the edit module was showing up by changing the script for the macro slightly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sub BrowseFolder&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Const OverWrite = True&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Dim destpath,&amp;nbsp; srcFiles&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objShell = CreateObject("Shell.Application")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objFolder = objShell.BrowseForFolder(0, "Example", 16384,"Computer")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; On Error Resume Next&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If objFolder Is Nothing Then&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Wscript.Quit&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ActiveDocument.Variables("vFileName").SetContent objFolder.title, true&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; ActiveDocument.Variables("vFolderName").SetContent objFolder.self.path, true&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox " Path: " &amp;amp; objFolder.self.path&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End Sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Still need help with the first issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 19:17:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Browsing-for-a-folder-Macro/m-p/887764#M309450</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-22T19:17:32Z</dc:date>
    </item>
  </channel>
</rss>

