<?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 button notworking through Macros in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-button-notworking-through-Macros/m-p/1045883#M465649</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only reason I could imagine is that there are some "special" chars within those records which vbs-macros couldn't handle and ignore them without giving an error-message (silent failure). I know such behaviour from vba-macros which I use for writing txt-files from sources which I couldn't control - I use in this case a white-list filter for checking each char and if it's not included within the white-list it will be replaced with a space-char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this won't be really practically by exporting this object - it's rather the worst-case approach to write these object cell by cell and char by char to excel. More practically might be a cleaning within the qlikview-load or by declaring the dimensions by using functions like keepchar() or purgechar() on this field which caused this behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore try to check out if there are any strange chars within your data - checking len() and visible word-lengths, using ord() to get numeric index and something similar. But the easiest way to check this could be to use this for the object-dimensions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;keepchar(upper(YourDimension), 'ABCD....')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Mar 2016 06:46:34 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-03-11T06:46:34Z</dc:date>
    <item>
      <title>Export button notworking through Macros</title>
      <link>https://community.qlik.com/t5/QlikView/Export-button-notworking-through-Macros/m-p/1045877#M465643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In one of the report after hitting the export button out 2000 records from the straight table only 6 records doesn't gets exported on an excel sheet. But when I do a right click and send to excel I get all the 2000 records. Not sure why it's happening, can somebody please guide. I checked my data model files and all records are present in the data model. Below is the macros for the export button:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub exportToExcel&lt;BR /&gt; &lt;BR /&gt; dim o&lt;BR /&gt; ExportPath = ActiveDocument.Variables("vExportPath").GetContent.String&lt;BR /&gt; ObjectID = ActiveDocument.Variables("vObjectID").GetContent.String&lt;BR /&gt; ChartName = ActiveDocument.GetSheetObject(ObjectID).GetCaption.Name.v&lt;BR /&gt; Set o = ActiveDocument.GetSheetObject(ObjectID)&lt;BR /&gt; o.ExportBiff ExportPath &amp;amp; ChartName &amp;amp; ".xls"&lt;BR /&gt; &lt;BR /&gt; Set o = nothing&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; end sub&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 10:24:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-button-notworking-through-Macros/m-p/1045877#M465643</guid>
      <dc:creator>appi_priya</dc:creator>
      <dc:date>2016-03-10T10:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Export button notworking through Macros</title>
      <link>https://community.qlik.com/t5/QlikView/Export-button-notworking-through-Macros/m-p/1045878#M465644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure that's the same object by exporting and send to excel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 12:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-button-notworking-through-Macros/m-p/1045878#M465644</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-03-10T12:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Export button notworking through Macros</title>
      <link>https://community.qlik.com/t5/QlikView/Export-button-notworking-through-Macros/m-p/1045879#M465645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes its the same object that's sending to excel through button macros and also while doing send to excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 13:45:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-button-notworking-through-Macros/m-p/1045879#M465645</guid>
      <dc:creator>appi_priya</dc:creator>
      <dc:date>2016-03-10T13:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Export button notworking through Macros</title>
      <link>https://community.qlik.com/t5/QlikView/Export-button-notworking-through-Macros/m-p/1045880#M465646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you check this behaviour with more or less data (I mean add or change selections) and then build the object new and check again and if it then happens again please provide an example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 14:13:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-button-notworking-through-Macros/m-p/1045880#M465646</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-03-10T14:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Export button notworking through Macros</title>
      <link>https://community.qlik.com/t5/QlikView/Export-button-notworking-through-Macros/m-p/1045881#M465647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so if I change my selection to other values the export button works fine while exporting to excel its only those 6 specific records that it's not exporting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I try exporting those 6 records into excel with the help of button I get a blank excel file with just the field names on it but no values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 14:44:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-button-notworking-through-Macros/m-p/1045881#M465647</guid>
      <dc:creator>appi_priya</dc:creator>
      <dc:date>2016-03-10T14:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Export button notworking through Macros</title>
      <link>https://community.qlik.com/t5/QlikView/Export-button-notworking-through-Macros/m-p/1045882#M465648</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;May be this guide will help to you....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Mar 2016 14:50:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-button-notworking-through-Macros/m-p/1045882#M465648</guid>
      <dc:creator>nagireddy_qv</dc:creator>
      <dc:date>2016-03-10T14:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Export button notworking through Macros</title>
      <link>https://community.qlik.com/t5/QlikView/Export-button-notworking-through-Macros/m-p/1045883#M465649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only reason I could imagine is that there are some "special" chars within those records which vbs-macros couldn't handle and ignore them without giving an error-message (silent failure). I know such behaviour from vba-macros which I use for writing txt-files from sources which I couldn't control - I use in this case a white-list filter for checking each char and if it's not included within the white-list it will be replaced with a space-char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this won't be really practically by exporting this object - it's rather the worst-case approach to write these object cell by cell and char by char to excel. More practically might be a cleaning within the qlikview-load or by declaring the dimensions by using functions like keepchar() or purgechar() on this field which caused this behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore try to check out if there are any strange chars within your data - checking len() and visible word-lengths, using ord() to get numeric index and something similar. But the easiest way to check this could be to use this for the object-dimensions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;keepchar(upper(YourDimension), 'ABCD....')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 06:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-button-notworking-through-Macros/m-p/1045883#M465649</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-03-11T06:46:34Z</dc:date>
    </item>
  </channel>
</rss>

