<?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: Load Excel files and ensure auto calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Excel-files-and-ensure-auto-calculation/m-p/880335#M307193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I would advise having the below macro in the excel sheet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="bbcode_description"&gt; &lt;/DIV&gt;&lt;DIV class="bbcode_description"&gt;&lt;P&gt;Private Sub Workbook_Close()&lt;/P&gt;&lt;P&gt;If Application.Calculation = -4135 Then&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim Response As VbMsgBoxResult&lt;/P&gt;&lt;P&gt;&amp;nbsp; Response = MsgBox("Calculation is set to MANUAL, This is not Recommended" &amp;amp; vbCrLf &amp;amp; "Set calculation to automatic?", vbYesNo + vbCritical, "Excel Calculation Check")&lt;/P&gt;&lt;P&gt;&amp;nbsp; Select Case Response&lt;/P&gt;&lt;P&gt;&amp;nbsp; Case vbYes&lt;/P&gt;&lt;P&gt;&amp;nbsp; Application.Calculation = xlCalculationAutomatic&lt;/P&gt;&lt;P&gt;&amp;nbsp; MsgBox ("Calculation has been set to AUTOMATIC", vbOKOnly + vbInformation, "Excel Calculation Check")&lt;/P&gt;&lt;P&gt;&amp;nbsp; Case vbNo&lt;/P&gt;&lt;P&gt;&amp;nbsp; MsgBox ("Calculation has left as MANUAL", vbOKOnly + vbInformation, "Excel Calculation Check")&lt;/P&gt;&lt;P&gt;&amp;nbsp; End Select&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="bbcode_description"&gt; &lt;/DIV&gt;&lt;DIV class="bbcode_description"&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="bbcode_description"&gt;This should force Auto Calculation Auto on the close event.&lt;/DIV&gt;&lt;DIV class="bbcode_description"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Apr 2015 04:32:18 GMT</pubDate>
    <dc:creator>ziadm</dc:creator>
    <dc:date>2015-04-09T04:32:18Z</dc:date>
    <item>
      <title>Load Excel files and ensure auto calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Excel-files-and-ensure-auto-calculation/m-p/880334#M307192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are facing the problem, that some input Excel files were edited by the user but saved without processing the calculation (auto calculation was turned off). I am aware that there are Excel macros to control auto calculation, but this is not an option at the moment. I guess there is no way to tell Qlik to force execution of calculation when reading the Excel file...but is it possible to check whether the file has auto cal activated or not? Like an Excel-cell containing a function that returns a true/false for this status what I could read in Qlik?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 01:28:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Excel-files-and-ensure-auto-calculation/m-p/880334#M307192</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2015-04-09T01:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Load Excel files and ensure auto calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Excel-files-and-ensure-auto-calculation/m-p/880335#M307193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I would advise having the below macro in the excel sheet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="bbcode_description"&gt; &lt;/DIV&gt;&lt;DIV class="bbcode_description"&gt;&lt;P&gt;Private Sub Workbook_Close()&lt;/P&gt;&lt;P&gt;If Application.Calculation = -4135 Then&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim Response As VbMsgBoxResult&lt;/P&gt;&lt;P&gt;&amp;nbsp; Response = MsgBox("Calculation is set to MANUAL, This is not Recommended" &amp;amp; vbCrLf &amp;amp; "Set calculation to automatic?", vbYesNo + vbCritical, "Excel Calculation Check")&lt;/P&gt;&lt;P&gt;&amp;nbsp; Select Case Response&lt;/P&gt;&lt;P&gt;&amp;nbsp; Case vbYes&lt;/P&gt;&lt;P&gt;&amp;nbsp; Application.Calculation = xlCalculationAutomatic&lt;/P&gt;&lt;P&gt;&amp;nbsp; MsgBox ("Calculation has been set to AUTOMATIC", vbOKOnly + vbInformation, "Excel Calculation Check")&lt;/P&gt;&lt;P&gt;&amp;nbsp; Case vbNo&lt;/P&gt;&lt;P&gt;&amp;nbsp; MsgBox ("Calculation has left as MANUAL", vbOKOnly + vbInformation, "Excel Calculation Check")&lt;/P&gt;&lt;P&gt;&amp;nbsp; End Select&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="bbcode_description"&gt; &lt;/DIV&gt;&lt;DIV class="bbcode_description"&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="bbcode_description"&gt;This should force Auto Calculation Auto on the close event.&lt;/DIV&gt;&lt;DIV class="bbcode_description"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 04:32:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Excel-files-and-ensure-auto-calculation/m-p/880335#M307193</guid>
      <dc:creator>ziadm</dc:creator>
      <dc:date>2015-04-09T04:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Load Excel files and ensure auto calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Excel-files-and-ensure-auto-calculation/m-p/880336#M307194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can not save file without recalculation even if the Manual calculation are ON as pressing Save trigger recalculations.&lt;/P&gt;&lt;P&gt;Manual/Automatic recalculation are Application base not file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you have your calculation set to manual you can use below macro to change to automatic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In QV press Ctrl+M&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paste this code:&lt;/P&gt;&lt;P&gt;Sub Excel_ChangeToAuto&lt;/P&gt;&lt;P&gt;'Open Excel&lt;/P&gt;&lt;P&gt;set XLApp = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;'Open Workbook&lt;/P&gt;&lt;P&gt;set XLDOC = XLApp.Workbooks.Open ("c:\Users\ ..&lt;STRONG&gt;.here enter full path to your spreadsheet&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;XLApp.Visible = True&lt;/P&gt;&lt;P&gt;'Send Key to set Calculations&lt;/P&gt;&lt;P&gt;XLApp.SendKeys "%m+x+a", True &lt;/P&gt;&lt;P&gt;&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>Thu, 09 Apr 2015 08:26:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Excel-files-and-ensure-auto-calculation/m-p/880336#M307194</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2015-04-09T08:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Load Excel files and ensure auto calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Excel-files-and-ensure-auto-calculation/m-p/880337#M307195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help, Robert. I will try it out soon.&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 06:17:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Excel-files-and-ensure-auto-calculation/m-p/880337#M307195</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2015-04-15T06:17:44Z</dc:date>
    </item>
  </channel>
</rss>

