<?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: Macros issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macros-issue/m-p/1032099#M464669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chk dis&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1017847"&gt;Export to Excel&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Apr 2016 08:46:08 GMT</pubDate>
    <dc:creator>Chanty4u</dc:creator>
    <dc:date>2016-04-14T08:46:08Z</dc:date>
    <item>
      <title>Macros issue</title>
      <link>https://community.qlik.com/t5/QlikView/Macros-issue/m-p/1032098#M464668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a help for one a report. There's an export button on my report which should send the current selection to excel if clicking on it. Not required to do a send to excel. But the issue is it's excluding 3 of the values from a field and then giving the excel sheet saved directly on the desktop which shouldn't happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the macros code is as follows:&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where the value for vExportPath = &lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vExportPhysicalFolder&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'My Desktop', &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vExportPath1&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vExportPath2&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;and the value for vObjectID = &lt;/SPAN&gt;12Month , then to further drill down vExportPath1 = &lt;SPAN style="font-size: 8pt;"&gt;='C:\Users\'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;OSUser&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(), '\', 2)&amp;amp;'\Desktop\' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;and vExportPath2 = &lt;SPAN style="font-size: 8pt;"&gt;='C:\Users\'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Subfield&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;OSUser&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(), '\', 2)&amp;amp;'\Documents' &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Request you to please provide some inputs on it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 07:22:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macros-issue/m-p/1032098#M464668</guid>
      <dc:creator>appi_priya</dc:creator>
      <dc:date>2016-04-14T07:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Macros issue</title>
      <link>https://community.qlik.com/t5/QlikView/Macros-issue/m-p/1032099#M464669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chk dis&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1017847"&gt;Export to Excel&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 08:46:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macros-issue/m-p/1032099#M464669</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-04-14T08:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Macros issue</title>
      <link>https://community.qlik.com/t5/QlikView/Macros-issue/m-p/1032100#M464670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not quite clear what you mean with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;But the issue is it's excluding 3 of the values from a field and then giving the excel sheet saved directly on the desktop which shouldn't happen.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did it mean that the macro generally worked unless for certain objects or didn't it work?&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, 14 Apr 2016 09:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macros-issue/m-p/1032100#M464670</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-04-14T09:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Macros issue</title>
      <link>https://community.qlik.com/t5/QlikView/Macros-issue/m-p/1032101#M464671</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 the macros worked but one of the field say Field A has 10 values in it and out of 10 its excluding 3 of the values and giving me the details of just 7 values from the Field A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 09:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macros-issue/m-p/1032101#M464671</guid>
      <dc:creator>appi_priya</dc:creator>
      <dc:date>2016-04-14T09:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Macros issue</title>
      <link>https://community.qlik.com/t5/QlikView/Macros-issue/m-p/1032102#M464672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you demonstrate the issue with sample outputs or snapshots ?? so that it will be helpful for us to understand &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 09:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macros-issue/m-p/1032102#M464672</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2016-04-14T09:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Macros issue</title>
      <link>https://community.qlik.com/t5/QlikView/Macros-issue/m-p/1032103#M464673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean if you looked on the chart in qv it has 10 rows and if it's exported without any further selections or actions it has only 7 rows? If yes, I think you exported the wrong object. This meant you need to check and compare the object-id against your (possible) variable-values.&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, 14 Apr 2016 10:59:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macros-issue/m-p/1032103#M464673</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-04-14T10:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Macros issue</title>
      <link>https://community.qlik.com/t5/QlikView/Macros-issue/m-p/1032104#M464674</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;The macros code has a variable vObjectID set to "12 month" but the data from where I am exporting is a straight table and has the ObjectID as CH90. So do you mean to say that since the object ids differ as 12 month and CH90 it's filtering out the 3 values out of 10 and giving me just 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In such a case I need to figure out the ObjectID which is set as 12 month and should ensure that it has all the 10 values because in macros its referring to vObjectID set to 12 month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just as an info I also tried to change the vObjectID set to 12 month as CH90 but it didn't work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 11:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macros-issue/m-p/1032104#M464674</guid>
      <dc:creator>appi_priya</dc:creator>
      <dc:date>2016-04-14T11:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Macros issue</title>
      <link>https://community.qlik.com/t5/QlikView/Macros-issue/m-p/1032105#M464675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have also a look on the caption name of these table then if it's empty or contained space or other special chars your:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ExportPath &amp;amp; ChartName &amp;amp; ".xls"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wouldn't return a valid path.&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, 14 Apr 2016 12:10:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macros-issue/m-p/1032105#M464675</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-04-14T12:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Macros issue</title>
      <link>https://community.qlik.com/t5/QlikView/Macros-issue/m-p/1032106#M464676</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;After changing the ObjectID in the macros code to the table I wanted to extract the data from I got the excel reading all the 10 values from the table. earlier it was reading the ObjectID as 12Month which was no where in my report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the guidance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 06:10:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macros-issue/m-p/1032106#M464676</guid>
      <dc:creator>appi_priya</dc:creator>
      <dc:date>2016-04-15T06:10:17Z</dc:date>
    </item>
  </channel>
</rss>

