<?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: Macro to send object to email as attachment..... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-send-object-to-email-as-attachment/m-p/516359#M192786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you have the macros to export in Excel and send it as attachment: &lt;A href="http://luciancotea.wordpress.com/2013/07/18/qlikview-macros-useful-collection/" title="http://luciancotea.wordpress.com/2013/07/18/qlikview-macros-useful-collection/"&gt;QlikView Macros – Useful collection&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Sep 2013 16:37:05 GMT</pubDate>
    <dc:creator>luciancotea</dc:creator>
    <dc:date>2013-09-12T16:37:05Z</dc:date>
    <item>
      <title>Macro to send object to email as attachment.....</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-send-object-to-email-as-attachment/m-p/516358#M192785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached file and want to send TOTAL SALE table via email as an excel attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please give me MACRO for it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 16:33:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-send-object-to-email-as-attachment/m-p/516358#M192785</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-09-12T16:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to send object to email as attachment.....</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-send-object-to-email-as-attachment/m-p/516359#M192786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you have the macros to export in Excel and send it as attachment: &lt;A href="http://luciancotea.wordpress.com/2013/07/18/qlikview-macros-useful-collection/" title="http://luciancotea.wordpress.com/2013/07/18/qlikview-macros-useful-collection/"&gt;QlikView Macros – Useful collection&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 16:37:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-send-object-to-email-as-attachment/m-p/516359#M192786</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2013-09-12T16:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to send object to email as attachment.....</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-send-object-to-email-as-attachment/m-p/516360#M192787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try This&lt;/P&gt;&lt;P&gt;FUNCTION ExcelExport(objID)&lt;/P&gt;&lt;P&gt;&amp;nbsp; set obj = ActiveDocument.GetSheetObject( objID )&lt;/P&gt;&lt;P&gt;&amp;nbsp; w = obj.GetColumnCount&lt;/P&gt;&lt;P&gt;&amp;nbsp; if obj.GetRowCount&amp;gt;1001 then&lt;/P&gt;&lt;P&gt;&amp;nbsp; h=1000 &lt;/P&gt;&lt;P&gt;&amp;nbsp; else h=obj.GetRowCount&lt;/P&gt;&lt;P&gt;&amp;nbsp; end if&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set objExcel = CreateObject("Excel.Application")&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN class="skimlinks-unlinked" style="font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit;"&gt;objExcel.Workbooks.Add&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; objExcel.Worksheets(1).select()&lt;/P&gt;&lt;P&gt;&amp;nbsp; objExcel.Visible = True&lt;/P&gt;&lt;P&gt;&amp;nbsp; set CellMatrix = obj.GetCells2(0,0,w,h)&lt;/P&gt;&lt;P&gt;&amp;nbsp; column = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; for cc=0 to w-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="skimlinks-unlinked" style="font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit;"&gt;objExcel.Cells(1,column).Value&lt;/SPAN&gt; = CellMatrix(0)(cc).Text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="skimlinks-unlinked" style="font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit;"&gt;objExcel.Cells(1,column).EntireRow.Font.Bold&lt;/SPAN&gt; = True&lt;/P&gt;&lt;P&gt;&amp;nbsp; column = column +1&lt;/P&gt;&lt;P&gt;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;&amp;nbsp; c = 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; r =2&lt;/P&gt;&lt;P&gt;&amp;nbsp; for RowIter=1 to h-1 &lt;/P&gt;&lt;P&gt;&amp;nbsp; for ColIter=0 to w-1 &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="skimlinks-unlinked" style="font-family: inherit; font-size: inherit; font-style: inherit; font-weight: inherit;"&gt;objExcel.Cells(r,c).Value&lt;/SPAN&gt; = CellMatrix(RowIter)(ColIter).Text&lt;/P&gt;&lt;P&gt;&amp;nbsp; c = c +1&lt;/P&gt;&lt;P&gt;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;&amp;nbsp; r = r+1&lt;/P&gt;&lt;P&gt;&amp;nbsp; c = 1&lt;/P&gt;&lt;P&gt; next&lt;/P&gt;&lt;P&gt;END FUNCTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB CallExample&lt;/P&gt;&lt;P&gt;&amp;nbsp; ExcelExport( "CH01" )&lt;/P&gt;&lt;P&gt;END SUB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 08:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-send-object-to-email-as-attachment/m-p/516360#M192787</guid>
      <dc:creator />
      <dc:date>2014-06-18T08:40:45Z</dc:date>
    </item>
  </channel>
</rss>

