<?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 Reading range in from Excel to field using Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Reading-range-in-from-Excel-to-field-using-Macro/m-p/161622#M35436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is it possible to read in a range of data from Excel to a field in QlikView by use of a Macro (not whilst Reloading) ?&lt;/P&gt;&lt;P&gt;We have an Aged Debtors calculating spreadhseet. You input the projected Revenue for next 24 months and predicted probabilities of receiving payment within 0-30, 30-60, 60-90 and 90+ Aged periods and it calulates the value of likely receipts over the coming months and the average payment time.&lt;/P&gt;&lt;P&gt;I am able to set the data fields within this spreadsheet and then read back individual cells from Excel into Variables within QlikView. I would however like to read back a range of cells from Excel (the projected Cash Receipts) into a field within QlikView. Not only would this save me having to individually read multiple cells, but enable me to then plot charts with the read data. At the moment I convert read in variables into InputFields as this is the only object I can find with the required Set command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;set fld = ActiveDocument.Fields("NewAgeDist")&lt;BR /&gt;set obj = ActiveDocument.GetSheetObject("TB04")&lt;BR /&gt;fld.SetInputFieldValue 0, ActiveDocument.Variables("vAgePercNew1").GetContent.String&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Any ideas would be much appreciated.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Aug 2009 09:14:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-08-20T09:14:57Z</dc:date>
    <item>
      <title>Reading range in from Excel to field using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-range-in-from-Excel-to-field-using-Macro/m-p/161622#M35436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is it possible to read in a range of data from Excel to a field in QlikView by use of a Macro (not whilst Reloading) ?&lt;/P&gt;&lt;P&gt;We have an Aged Debtors calculating spreadhseet. You input the projected Revenue for next 24 months and predicted probabilities of receiving payment within 0-30, 30-60, 60-90 and 90+ Aged periods and it calulates the value of likely receipts over the coming months and the average payment time.&lt;/P&gt;&lt;P&gt;I am able to set the data fields within this spreadsheet and then read back individual cells from Excel into Variables within QlikView. I would however like to read back a range of cells from Excel (the projected Cash Receipts) into a field within QlikView. Not only would this save me having to individually read multiple cells, but enable me to then plot charts with the read data. At the moment I convert read in variables into InputFields as this is the only object I can find with the required Set command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;set fld = ActiveDocument.Fields("NewAgeDist")&lt;BR /&gt;set obj = ActiveDocument.GetSheetObject("TB04")&lt;BR /&gt;fld.SetInputFieldValue 0, ActiveDocument.Variables("vAgePercNew1").GetContent.String&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Any ideas would be much appreciated.&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 09:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-range-in-from-Excel-to-field-using-Macro/m-p/161622#M35436</guid>
      <dc:creator />
      <dc:date>2009-08-20T09:14:57Z</dc:date>
    </item>
    <item>
      <title>Reading range in from Excel to field using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-range-in-from-Excel-to-field-using-Macro/m-p/161623#M35437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this should help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;http://community.qlik.com/forums/t/15975.aspx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;or using variables like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim wsname&lt;BR /&gt;Set XLApp = CreateObject("Excel.Application")&lt;BR /&gt;XLApp.Visible = TRUE&lt;BR /&gt;Set XLDoc = XLApp.Workbooks.Add&lt;/P&gt;&lt;P&gt;XLDoc.Sheets(wsname). &lt;STRONG&gt;Range&lt;/STRONG&gt;("A" &amp;amp; 1).Select&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 11:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-range-in-from-Excel-to-field-using-Macro/m-p/161623#M35437</guid>
      <dc:creator />
      <dc:date>2009-08-20T11:31:25Z</dc:date>
    </item>
    <item>
      <title>Reading range in from Excel to field using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-range-in-from-Excel-to-field-using-Macro/m-p/161624#M35438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi dragonauta,&lt;/P&gt;&lt;P&gt;I'm trying to read data back from Excel as opposed to update it within Excel.&lt;/P&gt;&lt;P&gt;Specifically I'm trying to read backa range of data from Excel instead of just a cell at a time, into a Variable which I then have to push into a InputField in order to be able to plot it.&lt;/P&gt;&lt;P&gt;Any thoughts ?&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 12:40:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-range-in-from-Excel-to-field-using-Macro/m-p/161624#M35438</guid>
      <dc:creator />
      <dc:date>2009-08-20T12:40:53Z</dc:date>
    </item>
    <item>
      <title>Reading range in from Excel to field using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Reading-range-in-from-Excel-to-field-using-Macro/m-p/161625#M35439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought the example would be confusing, but what I wanted to point out was the use of the .Range property, which should be what you're looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try to come up with an example and post it later.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 21:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Reading-range-in-from-Excel-to-field-using-Macro/m-p/161625#M35439</guid>
      <dc:creator />
      <dc:date>2009-08-20T21:31:08Z</dc:date>
    </item>
  </channel>
</rss>

