<?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: Re : Export straight table with macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Re-Export-straight-table-with-macro/m-p/849109#M297911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;May be this would be helpful.&lt;/P&gt;&lt;P&gt;As you Mentioned, already you have code for export to excel. You can add the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14346079135468422 jive_text_macro" jivemacro_uid="_14346079135468422"&gt;
&lt;P&gt;Sub RemoveDimension&lt;/P&gt;
&lt;P&gt;set obj = ActiveDocument.GetSheetObject("CH03") &lt;/P&gt;
&lt;P&gt;obj.RemoveDimension 0&lt;/P&gt;
&lt;P&gt;obj.RemoveDimension 3&lt;/P&gt;
&lt;P&gt;End Sub&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After exporting to excel you can add the dimension.&lt;/P&gt;&lt;P&gt;Or you can just hide the dimension when you are exporting excel, then show the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub AddDimension&lt;/P&gt;&lt;P&gt;set obj = ActiveDocument.Sheets("CH03")&lt;/P&gt;&lt;P&gt;obj.AddDimension "Dimension1"&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jun 2015 06:14:39 GMT</pubDate>
    <dc:creator>settu_periasamy</dc:creator>
    <dc:date>2015-06-18T06:14:39Z</dc:date>
    <item>
      <title>Re : Export straight table with macro</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Export-straight-table-with-macro/m-p/849103#M297905</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;I have a straight table and am using macro to export it to excel along with some other objects.it is working fine. Now i need to exclude 2 columns from the straight table while exporting?? is that possible ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Reena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 05:25:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Export-straight-table-with-macro/m-p/849103#M297905</guid>
      <dc:creator />
      <dc:date>2015-06-18T05:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re : Export straight table with macro</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Export-straight-table-with-macro/m-p/849104#M297906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Reena,&lt;/P&gt;&lt;P&gt;It is possible. I will recommend you to use inbuilt actions of Qlik rather than using macro. Well you can use a coppy the same Straight table with condition of excluding that two columns and let that be Hidden.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 05:33:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Export-straight-table-with-macro/m-p/849104#M297906</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2015-06-18T05:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Re : Export straight table with macro</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Export-straight-table-with-macro/m-p/849105#M297907</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;As Sujit suggested,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case 1 :Please take a copy of the existing straight table and in the copy application just hide whatever columns you dont want to export.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : Change the object Id in the macro script(as per your macro written).Other wise it will export original straight table only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sujit : Could you help me how we can achieve this without macro.(I dont know this)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ajay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 05:48:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Export-straight-table-with-macro/m-p/849105#M297907</guid>
      <dc:creator>ajaykumar1</dc:creator>
      <dc:date>2015-06-18T05:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Re : Export straight table with macro</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Export-straight-table-with-macro/m-p/849106#M297908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exporting an object to excel. You can use action defined export objects&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 05:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Export-straight-table-with-macro/m-p/849106#M297908</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2015-06-18T05:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re : Export straight table with macro</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Export-straight-table-with-macro/m-p/849107#M297909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks fo your reply..&lt;/P&gt;&lt;P&gt;Actually i have to use macro,since i have to export the entire sheet objects to a single sheet. please help me with avoiding the fields&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 05:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Export-straight-table-with-macro/m-p/849107#M297909</guid>
      <dc:creator />
      <dc:date>2015-06-18T05:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Re : Export straight table with macro</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Export-straight-table-with-macro/m-p/849108#M297910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you should use one more straight table excluding those two fields as Sujeeth suggested and that will be hidden. But the macro will export the hidden straight table which doesn't have those two fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 06:01:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Export-straight-table-with-macro/m-p/849108#M297910</guid>
      <dc:creator>NareshGuntur</dc:creator>
      <dc:date>2015-06-18T06:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re : Export straight table with macro</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Export-straight-table-with-macro/m-p/849109#M297911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;May be this would be helpful.&lt;/P&gt;&lt;P&gt;As you Mentioned, already you have code for export to excel. You can add the below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14346079135468422 jive_text_macro" jivemacro_uid="_14346079135468422"&gt;
&lt;P&gt;Sub RemoveDimension&lt;/P&gt;
&lt;P&gt;set obj = ActiveDocument.GetSheetObject("CH03") &lt;/P&gt;
&lt;P&gt;obj.RemoveDimension 0&lt;/P&gt;
&lt;P&gt;obj.RemoveDimension 3&lt;/P&gt;
&lt;P&gt;End Sub&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After exporting to excel you can add the dimension.&lt;/P&gt;&lt;P&gt;Or you can just hide the dimension when you are exporting excel, then show the dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub AddDimension&lt;/P&gt;&lt;P&gt;set obj = ActiveDocument.Sheets("CH03")&lt;/P&gt;&lt;P&gt;obj.AddDimension "Dimension1"&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 06:14:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Export-straight-table-with-macro/m-p/849109#M297911</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-06-18T06:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re : Export straight table with macro</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Export-straight-table-with-macro/m-p/849110#M297912</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;Hide the columns which you want to exclude by using the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chart Properties -&amp;gt; Dimension -&amp;gt; Using Enable Conditional option of the dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give some variable assume &lt;SPAN style="font-size: 13.3333330154419px;"&gt;vShowDim &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While triggering the macro add this events in the macro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Event 1: Action -&amp;gt; Add Action -&amp;gt; External -&amp;gt; Set Variable -&amp;gt; Set &lt;SPAN style="font-size: 13.3333330154419px;"&gt;vShowDim to 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Event 2: Call your macro here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Event 3: &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Action -&amp;gt; Add Action -&amp;gt; External -&amp;gt; Set Variable -&amp;gt; Set &lt;SPAN style="font-size: 13.3333330154419px;"&gt;vShowDim &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;to 1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 06:18:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Export-straight-table-with-macro/m-p/849110#M297912</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-06-18T06:18:00Z</dc:date>
    </item>
  </channel>
</rss>

