<?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 Variable, inputfields and vbscript in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-inputfields-and-vbscript/m-p/1414664#M611891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Goodmorning everyone,&lt;/P&gt;&lt;P&gt;I did a macro that reads some imputfields, reload the data and exports some excel objects.&lt;/P&gt;&lt;P&gt;The variable containing the date i will pass to the selections gives me some trouble. If the variable "today" is derived from an inputfield the variable is empty ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sub Esporta&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;path = ActiveDocument.Evaluate("pathXLS")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;' oggi = Year(Date) &amp;amp; Month(Date) &amp;amp; Day(Date)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;oggi = ActiveDocument.Evaluate("oggi")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;R1 = path &amp;amp; oggi &amp;amp; "_Riepilogo1.xls"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;R2 = path &amp;amp; oggi &amp;amp; "_Riepilogo2.xls"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;R3 = path &amp;amp; oggi &amp;amp; "_Riepilogo3.xls"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set C1 = ActiveDocument.GetSheetObject("CH50")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set C2 = ActiveDocument.GetSheetObject("CH51")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set C3 = ActiveDocument.GetSheetObject("CH53")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ActiveDocument.Reload&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C1.ExportBiff(R1)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C2.ExportBiff(R2)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C3.ExportBiff(R3)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;End Sub&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in advance for your reply&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Aug 2017 08:32:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-08-31T08:32:39Z</dc:date>
    <item>
      <title>Variable, inputfields and vbscript</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-inputfields-and-vbscript/m-p/1414664#M611891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Goodmorning everyone,&lt;/P&gt;&lt;P&gt;I did a macro that reads some imputfields, reload the data and exports some excel objects.&lt;/P&gt;&lt;P&gt;The variable containing the date i will pass to the selections gives me some trouble. If the variable "today" is derived from an inputfield the variable is empty ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Sub Esporta&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;path = ActiveDocument.Evaluate("pathXLS")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;' oggi = Year(Date) &amp;amp; Month(Date) &amp;amp; Day(Date)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;oggi = ActiveDocument.Evaluate("oggi")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;R1 = path &amp;amp; oggi &amp;amp; "_Riepilogo1.xls"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;R2 = path &amp;amp; oggi &amp;amp; "_Riepilogo2.xls"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;R3 = path &amp;amp; oggi &amp;amp; "_Riepilogo3.xls"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set C1 = ActiveDocument.GetSheetObject("CH50")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set C2 = ActiveDocument.GetSheetObject("CH51")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Set C3 = ActiveDocument.GetSheetObject("CH53")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ActiveDocument.Reload&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C1.ExportBiff(R1)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C2.ExportBiff(R2)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;C3.ExportBiff(R3)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;End Sub&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks in advance for your reply&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 08:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-inputfields-and-vbscript/m-p/1414664#M611891</guid>
      <dc:creator />
      <dc:date>2017-08-31T08:32:39Z</dc:date>
    </item>
  </channel>
</rss>

