<?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 Macro to move text box based on selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-move-text-box-based-on-selections/m-p/1042263#M523308</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;I have a straight table with financial information and because the user can select one or months/years, the straight table size changes. I have a text box to the right (partially complete) that show 3-Month trends and I was hoping to have this textbox follow the size of the straight table. I have this macro (below) but the edit box keeps popping up when I got to execute. So if the user selects one month, then the textbox will move to a position, if they select two months another position... I only went to month 3 in my macro but I want to end up going out to 11 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Textbox ID: TX778&lt;/P&gt;&lt;P&gt;Month Filter: LB39&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB Move1&lt;/P&gt;&lt;P&gt;set fld=Activedocument.Fields("LB39").Count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if fld=1 then&lt;/P&gt;&lt;P&gt;&amp;nbsp; set p1 = ActiveDocument.GetSheetObject("TX778")&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fr = p1.GetFrameDef&lt;/P&gt;&lt;P&gt;&amp;nbsp; set pos = fr.Rect&lt;/P&gt;&lt;P&gt;&amp;nbsp; pos.Left = 1000&lt;/P&gt;&lt;P&gt;&amp;nbsp; p1.SetFrame fr,true, ""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if fld=2 then&lt;/P&gt;&lt;P&gt;&amp;nbsp; set p1 = ActiveDocument.GetSheetObject("TX778")&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fr = p1.GetFrameDef&lt;/P&gt;&lt;P&gt;&amp;nbsp; set pos = fr.Rect&lt;/P&gt;&lt;P&gt;&amp;nbsp; pos.Left = 2000&lt;/P&gt;&lt;P&gt;&amp;nbsp; p1.SetFrame fr,true, ""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;if fld=3 then&lt;/P&gt;&lt;P&gt;&amp;nbsp; set p1 = ActiveDocument.GetSheetObject("TX778")&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fr = p1.GetFrameDef&lt;/P&gt;&lt;P&gt;&amp;nbsp; set pos = fr.Rect&lt;/P&gt;&lt;P&gt;&amp;nbsp; pos.Left = 3000&lt;/P&gt;&lt;P&gt;&amp;nbsp; p1.SetFrame fr,true, ""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End IF&lt;/P&gt;&lt;P&gt;End IF&lt;/P&gt;&lt;P&gt;End IF&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;&lt;/P&gt;&lt;P&gt;Thank you very much in advance!&lt;IMG alt="Qlikview Chart Move.JPG" class="jive-image image-1" src="/legacyfs/online/117549_Qlikview Chart Move.JPG" style="height: 367px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Mar 2016 18:15:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-03-09T18:15:50Z</dc:date>
    <item>
      <title>Macro to move text box based on selections</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-move-text-box-based-on-selections/m-p/1042263#M523308</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;I have a straight table with financial information and because the user can select one or months/years, the straight table size changes. I have a text box to the right (partially complete) that show 3-Month trends and I was hoping to have this textbox follow the size of the straight table. I have this macro (below) but the edit box keeps popping up when I got to execute. So if the user selects one month, then the textbox will move to a position, if they select two months another position... I only went to month 3 in my macro but I want to end up going out to 11 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Textbox ID: TX778&lt;/P&gt;&lt;P&gt;Month Filter: LB39&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB Move1&lt;/P&gt;&lt;P&gt;set fld=Activedocument.Fields("LB39").Count&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if fld=1 then&lt;/P&gt;&lt;P&gt;&amp;nbsp; set p1 = ActiveDocument.GetSheetObject("TX778")&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fr = p1.GetFrameDef&lt;/P&gt;&lt;P&gt;&amp;nbsp; set pos = fr.Rect&lt;/P&gt;&lt;P&gt;&amp;nbsp; pos.Left = 1000&lt;/P&gt;&lt;P&gt;&amp;nbsp; p1.SetFrame fr,true, ""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if fld=2 then&lt;/P&gt;&lt;P&gt;&amp;nbsp; set p1 = ActiveDocument.GetSheetObject("TX778")&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fr = p1.GetFrameDef&lt;/P&gt;&lt;P&gt;&amp;nbsp; set pos = fr.Rect&lt;/P&gt;&lt;P&gt;&amp;nbsp; pos.Left = 2000&lt;/P&gt;&lt;P&gt;&amp;nbsp; p1.SetFrame fr,true, ""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;if fld=3 then&lt;/P&gt;&lt;P&gt;&amp;nbsp; set p1 = ActiveDocument.GetSheetObject("TX778")&lt;/P&gt;&lt;P&gt;&amp;nbsp; set fr = p1.GetFrameDef&lt;/P&gt;&lt;P&gt;&amp;nbsp; set pos = fr.Rect&lt;/P&gt;&lt;P&gt;&amp;nbsp; pos.Left = 3000&lt;/P&gt;&lt;P&gt;&amp;nbsp; p1.SetFrame fr,true, ""&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End IF&lt;/P&gt;&lt;P&gt;End IF&lt;/P&gt;&lt;P&gt;End IF&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;&lt;/P&gt;&lt;P&gt;Thank you very much in advance!&lt;IMG alt="Qlikview Chart Move.JPG" class="jive-image image-1" src="/legacyfs/online/117549_Qlikview Chart Move.JPG" style="height: 367px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 18:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-move-text-box-based-on-selections/m-p/1042263#M523308</guid>
      <dc:creator />
      <dc:date>2016-03-09T18:15:50Z</dc:date>
    </item>
  </channel>
</rss>

