<?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: Straight Table macro will only adjust First Column's Width in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Straight-Table-macro-will-only-adjust-First-Column-s-Width/m-p/27806#M4637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;' sets chart column widths&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;sub ColWidth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; set chart = ActiveDocument.GetSheetObject("CH08")&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; set cp = chart.GetProperties&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; set dims = cp.Dimensions&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; set exprs = cp.Expressions&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;'&amp;nbsp; msgbox dims.count&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; for i = 0 to dims.count-1&lt;/P&gt;&lt;P style="padding-left: 33.75px; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; dims(i).ColWidth = 175 &lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; next &lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; chart.SetProperties cp&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; for i = 0 to exprs.count-1&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt; set expr = cp.Expressions.Item(i).Item(0).Data.ExpressionVisual&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; expr.ColWidth = 250&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; chart.SetProperties cp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Apr 2018 18:39:18 GMT</pubDate>
    <dc:creator>m_woolf</dc:creator>
    <dc:date>2018-04-12T18:39:18Z</dc:date>
    <item>
      <title>Straight Table macro will only adjust First Column's Width</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-macro-will-only-adjust-First-Column-s-Width/m-p/27805#M4636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a simple macro to adjust the column width of a straight table with much more precision than manually dragging the column’s border.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My current macro is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;SUB&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt; Straight_Column_Resize&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ST_ID = &lt;SPAN style="color: #0000ff;"&gt;INPUTBOX&lt;/SPAN&gt;("Input the Straight Table's Object ID.")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ST_COL_NUMBER = &lt;SPAN style="color: #0000ff;"&gt;INPUTBOX&lt;/SPAN&gt;("Input the Straight Table's column number to adjust.")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ST_COL_WIDTH = &lt;SPAN style="color: #0000ff;"&gt;INPUTBOX&lt;/SPAN&gt;("Input the column width in pixels.")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;SET&lt;/SPAN&gt; ST = ActiveDocument.GetSheetObject(ST_ID)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ST.SetPixWidths ST_COL_NUMBER, ST_COL_WIDTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: 'courier new', courier;"&gt;END SUB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I am having is the macro will only adjust (no matter the second argument) the first column. Any thoughts? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 14:15:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-macro-will-only-adjust-First-Column-s-Width/m-p/27805#M4636</guid>
      <dc:creator>nick_at_cl</dc:creator>
      <dc:date>2018-04-12T14:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table macro will only adjust First Column's Width</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-macro-will-only-adjust-First-Column-s-Width/m-p/27806#M4637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;' sets chart column widths&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;sub ColWidth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; set chart = ActiveDocument.GetSheetObject("CH08")&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; set cp = chart.GetProperties&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; set dims = cp.Dimensions&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; set exprs = cp.Expressions&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;'&amp;nbsp; msgbox dims.count&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; for i = 0 to dims.count-1&lt;/P&gt;&lt;P style="padding-left: 33.75px; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; dims(i).ColWidth = 175 &lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; next &lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; chart.SetProperties cp&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; for i = 0 to exprs.count-1&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt; set expr = cp.Expressions.Item(i).Item(0).Data.ExpressionVisual&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; expr.ColWidth = 250&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp; chart.SetProperties cp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 18:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-macro-will-only-adjust-First-Column-s-Width/m-p/27806#M4637</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2018-04-12T18:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table macro will only adjust First Column's Width</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-macro-will-only-adjust-First-Column-s-Width/m-p/27807#M4638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! That got it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 19:09:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-macro-will-only-adjust-First-Column-s-Width/m-p/27807#M4638</guid>
      <dc:creator>nick_at_cl</dc:creator>
      <dc:date>2018-04-12T19:09:18Z</dc:date>
    </item>
  </channel>
</rss>

