<?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 How to add elements of array to listbox created by macros in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-add-elements-of-array-to-listbox-created-by-macros/m-p/341821#M1176311</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't populate listbox data using a macro. Even if you could, the data would not be connected to anything so would be of limited use. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you describe what overall problem you are trying to solve and maybe we can suggest some alternatives?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Apr 2012 23:14:26 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2012-04-08T23:14:26Z</dc:date>
    <item>
      <title>How to add elements of array to listbox created by macros</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-elements-of-array-to-listbox-created-by-macros/m-p/341820#M1176310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking forward to add names array to listbox created.&lt;/P&gt;&lt;P&gt;please its urgent requirement to be fulfilled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Point to be noted: I dont have any sort of field by the name "names" in qvw&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub irf1&lt;/P&gt;&lt;P&gt;Dim names(100)&lt;/P&gt;&lt;P&gt;Set objExcel = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;'Msgbox("Hi")&lt;/P&gt;&lt;P&gt;Set objWorkbook = objExcel.Workbooks.Open _&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ("C:\Employee.xls")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox("Hello")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rowcount =2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Do Until objExcel.Cells(rowcount,1).Value = ""&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; names(rowcount-2)=objExcel.Cells(rowcount, 1).Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ' msgbox(names(rowcount-2))&lt;/P&gt;&lt;P&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;'&amp;nbsp;&amp;nbsp; msgbox(objExcel.Cells(rowcount, 1).Value)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; rowcount = rowcount + 1&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;Loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set LB = ActiveDocument.ActiveSheet.CreateListBox&lt;/P&gt;&lt;P&gt;set BoxProp=LB.GetProperties&lt;/P&gt;&lt;P&gt;BoxProp.Def.Name = "names"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LB.SetProperties BoxProp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Apr 2012 07:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-elements-of-array-to-listbox-created-by-macros/m-p/341820#M1176310</guid>
      <dc:creator />
      <dc:date>2012-04-08T07:43:04Z</dc:date>
    </item>
    <item>
      <title>How to add elements of array to listbox created by macros</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-elements-of-array-to-listbox-created-by-macros/m-p/341821#M1176311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't populate listbox data using a macro. Even if you could, the data would not be connected to anything so would be of limited use. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you describe what overall problem you are trying to solve and maybe we can suggest some alternatives?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Apr 2012 23:14:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-elements-of-array-to-listbox-created-by-macros/m-p/341821#M1176311</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-04-08T23:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to add elements of array to listbox created by macros</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-elements-of-array-to-listbox-created-by-macros/m-p/341822#M1176312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I am looking forward to&amp;nbsp; fetch the data from excel sheet on single click on button and syn. with other existing data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I mean if I select data say EmpID which is fetch from excel sheet via action button then it should have to have association with other existing data too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Please find the attached files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 07:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-elements-of-array-to-listbox-created-by-macros/m-p/341822#M1176312</guid>
      <dc:creator />
      <dc:date>2012-04-09T07:25:07Z</dc:date>
    </item>
    <item>
      <title>How to add elements of array to listbox created by macros</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-elements-of-array-to-listbox-created-by-macros/m-p/341823#M1176313</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 am afraid that your example does not explain why you don't just load the data in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 07:59:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-elements-of-array-to-listbox-created-by-macros/m-p/341823#M1176313</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-04-09T07:59:14Z</dc:date>
    </item>
    <item>
      <title>How to add elements of array to listbox created by macros</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-elements-of-array-to-listbox-created-by-macros/m-p/341824#M1176314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Jonathan, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Yes I can do that,but i want the application should be user friendly to end user,So He/She can add data via action button. Can you help me out in the way I am looking forward to solve this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 08:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-elements-of-array-to-listbox-created-by-macros/m-p/341824#M1176314</guid>
      <dc:creator />
      <dc:date>2012-04-09T08:16:47Z</dc:date>
    </item>
    <item>
      <title>How to add elements of array to listbox created by macros</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-add-elements-of-array-to-listbox-created-by-macros/m-p/341825#M1176315</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;Then create a macro sub:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Reload&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.Reload&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And create an action button to call the macro. Or simpler still, train the users to use the reload button from the desktop client. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bear in mind that user reloads can create all sorts of problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jonathan &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 15:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-add-elements-of-array-to-listbox-created-by-macros/m-p/341825#M1176315</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-04-09T15:19:17Z</dc:date>
    </item>
  </channel>
</rss>

