<?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 Add a Command in Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-a-Command-in-Macro/m-p/759998#M471493</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;I would appreciate your help with adding a Command to a Macro I found in the Community.&lt;/P&gt;&lt;P&gt;I need to get the chart caption in &lt;STRONG&gt;Bold&lt;/STRONG&gt;&amp;nbsp; with Columns AutoFit .&lt;/P&gt;&lt;P&gt;Thanks from advance&lt;/P&gt;&lt;P&gt;Roee&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub test&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; 'Set the path where the excel will be saved&lt;BR /&gt; &lt;BR /&gt; filePath = "..Test.xlsx"&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; 'Create the Excel spreadsheet&lt;BR /&gt; &lt;BR /&gt; Set excelFile = CreateObject("Excel.Application")&lt;BR /&gt; &lt;BR /&gt; excelFile.Visible = true&lt;BR /&gt; &lt;BR /&gt; 'Create the WorkBook&lt;BR /&gt; &lt;BR /&gt; Set curWorkBook = excelFile.WorkBooks.Add&lt;BR /&gt; &lt;BR /&gt; 'Create the Sheet&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; 'first chart object&lt;BR /&gt; &lt;BR /&gt; Set curSheet = curWorkBook.WorkSheets(1)&lt;BR /&gt; curSheet.visible=True &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; 'loop&lt;BR /&gt; &lt;BR /&gt; chartArray = Array("1","2")&lt;BR /&gt; &lt;BR /&gt; usedRows=0&lt;BR /&gt; &lt;BR /&gt; For Each chart In chartArray&lt;BR /&gt; &lt;BR /&gt; Set i = ActiveDocument.GetSheetObject(chart)&lt;BR /&gt; &lt;BR /&gt; chartCaption = i.GetCaption.Name.v&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; curSheet.Cells(usedRows+1, 1)=chartCaption&lt;BR /&gt; &lt;BR /&gt; i.CopyTableToClipboard true&lt;BR /&gt; &lt;BR /&gt; curSheet.Cells(usedRows+3, 1).Select&lt;BR /&gt; 'Selection.Font.Bold = True = chartCaption&lt;BR /&gt; &lt;BR /&gt; curSheet.Paste&lt;BR /&gt; &lt;BR /&gt; usedRows=curSheet.UsedRange.Rows.Count+3 '---&amp;gt;function to get the first unused row&lt;BR /&gt; &lt;BR /&gt; Next&lt;BR /&gt; &lt;BR /&gt; 'loop end&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; excelFile.Visible = true&lt;BR /&gt; &lt;BR /&gt; 'Save the file and quit excel&lt;BR /&gt; &lt;BR /&gt; curWorkBook.SaveAs filePath&lt;BR /&gt; &lt;BR /&gt; curWorkBook.Close&lt;BR /&gt; &lt;BR /&gt; excelFile.Quit&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; 'Cleanup&lt;BR /&gt; &lt;BR /&gt; Set curWorkBook = nothing&lt;BR /&gt; &lt;BR /&gt; Set excelFile = nothing&lt;BR /&gt; &lt;BR /&gt; end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Mar 2015 18:40:01 GMT</pubDate>
    <dc:creator>roee1983</dc:creator>
    <dc:date>2015-03-06T18:40:01Z</dc:date>
    <item>
      <title>Add a Command in Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Add-a-Command-in-Macro/m-p/759998#M471493</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;I would appreciate your help with adding a Command to a Macro I found in the Community.&lt;/P&gt;&lt;P&gt;I need to get the chart caption in &lt;STRONG&gt;Bold&lt;/STRONG&gt;&amp;nbsp; with Columns AutoFit .&lt;/P&gt;&lt;P&gt;Thanks from advance&lt;/P&gt;&lt;P&gt;Roee&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub test&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; 'Set the path where the excel will be saved&lt;BR /&gt; &lt;BR /&gt; filePath = "..Test.xlsx"&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; 'Create the Excel spreadsheet&lt;BR /&gt; &lt;BR /&gt; Set excelFile = CreateObject("Excel.Application")&lt;BR /&gt; &lt;BR /&gt; excelFile.Visible = true&lt;BR /&gt; &lt;BR /&gt; 'Create the WorkBook&lt;BR /&gt; &lt;BR /&gt; Set curWorkBook = excelFile.WorkBooks.Add&lt;BR /&gt; &lt;BR /&gt; 'Create the Sheet&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; 'first chart object&lt;BR /&gt; &lt;BR /&gt; Set curSheet = curWorkBook.WorkSheets(1)&lt;BR /&gt; curSheet.visible=True &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; 'loop&lt;BR /&gt; &lt;BR /&gt; chartArray = Array("1","2")&lt;BR /&gt; &lt;BR /&gt; usedRows=0&lt;BR /&gt; &lt;BR /&gt; For Each chart In chartArray&lt;BR /&gt; &lt;BR /&gt; Set i = ActiveDocument.GetSheetObject(chart)&lt;BR /&gt; &lt;BR /&gt; chartCaption = i.GetCaption.Name.v&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; curSheet.Cells(usedRows+1, 1)=chartCaption&lt;BR /&gt; &lt;BR /&gt; i.CopyTableToClipboard true&lt;BR /&gt; &lt;BR /&gt; curSheet.Cells(usedRows+3, 1).Select&lt;BR /&gt; 'Selection.Font.Bold = True = chartCaption&lt;BR /&gt; &lt;BR /&gt; curSheet.Paste&lt;BR /&gt; &lt;BR /&gt; usedRows=curSheet.UsedRange.Rows.Count+3 '---&amp;gt;function to get the first unused row&lt;BR /&gt; &lt;BR /&gt; Next&lt;BR /&gt; &lt;BR /&gt; 'loop end&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; excelFile.Visible = true&lt;BR /&gt; &lt;BR /&gt; 'Save the file and quit excel&lt;BR /&gt; &lt;BR /&gt; curWorkBook.SaveAs filePath&lt;BR /&gt; &lt;BR /&gt; curWorkBook.Close&lt;BR /&gt; &lt;BR /&gt; excelFile.Quit&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; 'Cleanup&lt;BR /&gt; &lt;BR /&gt; Set curWorkBook = nothing&lt;BR /&gt; &lt;BR /&gt; Set excelFile = nothing&lt;BR /&gt; &lt;BR /&gt; end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 18:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-a-Command-in-Macro/m-p/759998#M471493</guid>
      <dc:creator>roee1983</dc:creator>
      <dc:date>2015-03-06T18:40:01Z</dc:date>
    </item>
  </channel>
</rss>

