<?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 Possible Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-Possible-Values/m-p/415614#M1164213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you change your listbox or created another for the export.&lt;/P&gt;&lt;P&gt;Then instead of listing a field, enter the expression:&lt;/P&gt;&lt;P&gt;aggr(Field,Field)&lt;/P&gt;&lt;P&gt;Now the listbox displays only possible values.&lt;/P&gt;&lt;P&gt;Then export to excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Sep 2012 11:02:32 GMT</pubDate>
    <dc:creator>m_woolf</dc:creator>
    <dc:date>2012-09-18T11:02:32Z</dc:date>
    <item>
      <title>Export Possible Values</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Possible-Values/m-p/415613#M1164212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to write a macro that creates a report for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First thing I am struggling with is to export a list of POSSIBLE values from a list box after I make a selection using a bookmark.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;SET XLApp = CreateObject("Excel.Application")&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;XLApp.Visible = False&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;SET XLDoc = XLApp.Workbooks.Add&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;SET XLSheet1 = XLDoc.Worksheets(1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;dtmDate = Date&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;strYear = year(Date)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;strMonth = month(Date)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;if len(strMonth) = 1 then strMonth = "0" &amp;amp; strMonth&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;strDay = day(Date()-1)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;if len(strDay) = 1 then strDay = "0" &amp;amp; strDay&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;NewFileName = "C:\Documents and Settings\GERHARDL\My Documents\TEST\RandomTest " &amp;amp; strYear &amp;amp; strMonth &amp;amp; strDay &amp;amp;".xlsx"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;ActiveDocument.RecallDocBookmark "Dormant6"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; XXXXXXXXXXXXXXXXXXXXXXXXXXX&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;XLApp.Visible = True&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;XLDoc.SaveAs NewFileName&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;' XLApp.Quit&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;End Sub&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where you see the XXXX's is where I now need to select &lt;SPAN style="text-decoration: underline;"&gt;possible&lt;/SPAN&gt; valaues from LB31 and paste it in Cell A1 of the New Excel file I created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 06:47:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Possible-Values/m-p/415613#M1164212</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2012-09-18T06:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Export Possible Values</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Possible-Values/m-p/415614#M1164213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you change your listbox or created another for the export.&lt;/P&gt;&lt;P&gt;Then instead of listing a field, enter the expression:&lt;/P&gt;&lt;P&gt;aggr(Field,Field)&lt;/P&gt;&lt;P&gt;Now the listbox displays only possible values.&lt;/P&gt;&lt;P&gt;Then export to excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 11:02:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Possible-Values/m-p/415614#M1164213</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2012-09-18T11:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Export Possible Values</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Possible-Values/m-p/415615#M1164214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works perfectly - thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2012 11:19:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Possible-Values/m-p/415615#M1164214</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2012-09-18T11:19:15Z</dc:date>
    </item>
  </channel>
</rss>

