<?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: Export ListBox with Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-ListBox-with-Macro/m-p/337822#M124596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Hi Luciano,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Have you considered using...Right click on List Box &amp;gt; Copy to Clipboard &amp;gt; Copy Possible Values and paste them in Excel? You can use this approach without using macros.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;However, if you still need macros then you need something like this...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-family: calibri,verdana,arial,sans-serif;"&gt;Sub GetPossibleValueFromLB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-family: calibri,verdana,arial,sans-serif;"&gt;set LB = ActiveDocument.GetSheetObject("LB01")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-family: calibri,verdana,arial,sans-serif;"&gt;boxvalues=LB.GetPossibleValues&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-family: calibri,verdana,arial,sans-serif;"&gt;for i = lbound(boxvalues) to ubound(boxvalues)&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-family: calibri,verdana,arial,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox(boxvalues(i))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-family: calibri,verdana,arial,sans-serif;"&gt;next&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-family: calibri,verdana,arial,sans-serif;"&gt;End Sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Please integrate the above code with your original code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://QlikShare.com"&gt;&lt;BR /&gt;&lt;/A&gt;&lt;A href="http://QlikShare.com"&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;www.QlikShare.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Aug 2012 17:01:42 GMT</pubDate>
    <dc:creator>IAMDV</dc:creator>
    <dc:date>2012-08-05T17:01:42Z</dc:date>
    <item>
      <title>Export ListBox with Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Export-ListBox-with-Macro/m-p/337821#M124595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, first sorry for my bad english.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using this macro to export data from a list box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function ServerExportEx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set st = ActiveDocument.GetSheetObject("LB35")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;st.ServerSideExportEx "C:\FTP\Clientes\"&amp;amp;"MAILS"&amp;amp;".TXT",";",1&lt;/P&gt;&lt;P&gt;end function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that this macro export all values from list box, and i need only possible values to select, not the excluded values.&lt;/P&gt;&lt;P&gt;Where i need to change the macro?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope can understandme and thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luciano.-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 19:39:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-ListBox-with-Macro/m-p/337821#M124595</guid>
      <dc:creator />
      <dc:date>2012-08-03T19:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Export ListBox with Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Export-ListBox-with-Macro/m-p/337822#M124596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Hi Luciano,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Have you considered using...Right click on List Box &amp;gt; Copy to Clipboard &amp;gt; Copy Possible Values and paste them in Excel? You can use this approach without using macros.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;However, if you still need macros then you need something like this...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-family: calibri,verdana,arial,sans-serif;"&gt;Sub GetPossibleValueFromLB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-family: calibri,verdana,arial,sans-serif;"&gt;set LB = ActiveDocument.GetSheetObject("LB01")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-family: calibri,verdana,arial,sans-serif;"&gt;boxvalues=LB.GetPossibleValues&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-family: calibri,verdana,arial,sans-serif;"&gt;for i = lbound(boxvalues) to ubound(boxvalues)&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-family: calibri,verdana,arial,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox(boxvalues(i))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-family: calibri,verdana,arial,sans-serif;"&gt;next&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #000080; font-family: calibri,verdana,arial,sans-serif;"&gt;End Sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Please integrate the above code with your original code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://QlikShare.com"&gt;&lt;BR /&gt;&lt;/A&gt;&lt;A href="http://QlikShare.com"&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;www.QlikShare.com&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Aug 2012 17:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-ListBox-with-Macro/m-p/337822#M124596</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2012-08-05T17:01:42Z</dc:date>
    </item>
  </channel>
</rss>

