<?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 Formatting with macros in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formatting-with-macros/m-p/96733#M761080</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 am using this macro to extract multiple tables from Qlikview to excel:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.qlikblog.at/971/qliktip-32-exporting-multiple-objects-single-excel-document/comment-page-1/" title="http://www.qlikblog.at/971/qliktip-32-exporting-multiple-objects-single-excel-document/comment-page-1/" target="_blank"&gt;http://www.qlikblog.at/971/qliktip-32-exporting-multiple-objects-single-excel-document/comment-page-1/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;However, I have problems in getting the extracts formatted. I used &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;WorkSheets("Summary").Row(10).Bold&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;WorkSheets("Policy").Row(1).Bold&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Below. But it does not take.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;a) What could I do?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;b) What would be the command to wrap a text?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;sub exportLosses&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;'// Array for export definitions&lt;/P&gt;&lt;P&gt;Dim aryExport(3,2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aryExport(0,0) = "Main"&lt;/P&gt;&lt;P&gt;aryExport(0,1) = "Summary"&lt;/P&gt;&lt;P&gt;aryExport(0,2) = "A1"&lt;/P&gt;&lt;P&gt;aryExport(0,3) = "data"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aryExport(1,0) = "Summary"&lt;/P&gt;&lt;P&gt;aryExport(1,1) = "Summary"&lt;/P&gt;&lt;P&gt;aryExport(1,2) = "A10"&lt;/P&gt;&lt;P&gt;aryExport(1,3) = "data"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aryExport(2,0) = "Policy"&lt;/P&gt;&lt;P&gt;aryExport(2,1) = "Policy"&lt;/P&gt;&lt;P&gt;aryExport(2,2) = "A1"&lt;/P&gt;&lt;P&gt;aryExport(2,3) = "data"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim objExcelWorkbook 'as Excel.Workbook&lt;/P&gt;&lt;P&gt;Set objExcelWorkbook = copyObjectsToExcelSheet(ActiveDocument, aryExport)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WorkSheets("Summary").Row(10).Bold&lt;/P&gt;&lt;P&gt;WorkSheets("Policy").Row(1).Bold&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'// Now either just leave Excel open or do some other stuff here&lt;/P&gt;&lt;P&gt;'// like saving the excel, some formatting stuff, ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>schumi1980</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Formatting with macros</title>
      <link>https://community.qlik.com/t5/QlikView/Formatting-with-macros/m-p/96733#M761080</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 am using this macro to extract multiple tables from Qlikview to excel:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.qlikblog.at/971/qliktip-32-exporting-multiple-objects-single-excel-document/comment-page-1/" title="http://www.qlikblog.at/971/qliktip-32-exporting-multiple-objects-single-excel-document/comment-page-1/" target="_blank"&gt;http://www.qlikblog.at/971/qliktip-32-exporting-multiple-objects-single-excel-document/comment-page-1/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;However, I have problems in getting the extracts formatted. I used &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;WorkSheets("Summary").Row(10).Bold&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;WorkSheets("Policy").Row(1).Bold&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Below. But it does not take.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;a) What could I do?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;b) What would be the command to wrap a text?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;sub exportLosses&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;'// Array for export definitions&lt;/P&gt;&lt;P&gt;Dim aryExport(3,2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aryExport(0,0) = "Main"&lt;/P&gt;&lt;P&gt;aryExport(0,1) = "Summary"&lt;/P&gt;&lt;P&gt;aryExport(0,2) = "A1"&lt;/P&gt;&lt;P&gt;aryExport(0,3) = "data"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aryExport(1,0) = "Summary"&lt;/P&gt;&lt;P&gt;aryExport(1,1) = "Summary"&lt;/P&gt;&lt;P&gt;aryExport(1,2) = "A10"&lt;/P&gt;&lt;P&gt;aryExport(1,3) = "data"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aryExport(2,0) = "Policy"&lt;/P&gt;&lt;P&gt;aryExport(2,1) = "Policy"&lt;/P&gt;&lt;P&gt;aryExport(2,2) = "A1"&lt;/P&gt;&lt;P&gt;aryExport(2,3) = "data"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim objExcelWorkbook 'as Excel.Workbook&lt;/P&gt;&lt;P&gt;Set objExcelWorkbook = copyObjectsToExcelSheet(ActiveDocument, aryExport)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WorkSheets("Summary").Row(10).Bold&lt;/P&gt;&lt;P&gt;WorkSheets("Policy").Row(1).Bold&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'// Now either just leave Excel open or do some other stuff here&lt;/P&gt;&lt;P&gt;'// like saving the excel, some formatting stuff, ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formatting-with-macros/m-p/96733#M761080</guid>
      <dc:creator>schumi1980</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
  </channel>
</rss>

