<?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: need help to update macro code in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/need-help-to-update-macro-code/m-p/1119806#M899622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After all I'm not sure if the transfer from the table-object to the macro and from there into gui-variables really useful - I think you could what you want to do better achieve if you do it directly within gui. You might need for this advanced aggregations with the aggr-function but this is better and easier then to handle array-string within variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jul 2016 17:54:34 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-07-22T17:54:34Z</dc:date>
    <item>
      <title>need help to update macro code</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-to-update-macro-code/m-p/1119797#M899613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello guys,&lt;/P&gt;&lt;P&gt;i have macro code to copy value (one specific value from a column and row i.e. cell) from chart into variable as - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub Get_contrib&lt;/P&gt;&lt;P&gt; Application.WaitForIdle&lt;/P&gt;&lt;P&gt; set cell=ActiveDocument.GetSheetObject("CH05").GetCell(1,3)&lt;/P&gt;&lt;P&gt; ActiveDocument.Variables("vValue").SetContent cell.text, True &lt;/P&gt;&lt;P&gt; set cell=nothing&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;BUT my problem is i want to select full row with column. Can someone help.&lt;/P&gt;&lt;P&gt;thanks&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/need-help-to-update-macro-code/m-p/1119797#M899613</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: need help to update macro code</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-to-update-macro-code/m-p/1119798#M899614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You couldn't copy simply a column - you will need to read the chart cell for cell within a loop including the header and put them together like you need them, see here an example from APIGuide.qvw how you could access any cell within a table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set table = ActiveDocument.GetSheetObject( "CH01" )&lt;/P&gt;&lt;P&gt;w = table.GetColumnCount&lt;/P&gt;&lt;P&gt;h = table.GetRowCount&lt;/P&gt;&lt;P&gt;set CellMatrix = table.GetCells2(0,0,w,h)&lt;/P&gt;&lt;P&gt;for RowIter=0 to h-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for ColIter=0 to w-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgbox(CellMatrix(RowIter)(ColIter).Text)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; next&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case you could fix the column and simply loop through the rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 18:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-to-update-macro-code/m-p/1119798#M899614</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-07-21T18:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: need help to update macro code</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-to-update-macro-code/m-p/1119799#M899615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for ur reply marcus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok now i have the cels values , can i store dem in variable so i can use variable to calculate some formula like i want to store cloumn 1 in variable val1 and&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;cloumn 2 in variable val2 and den use it for applying some formula like xirr(val1,val2)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jul 2016 18:38:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-to-update-macro-code/m-p/1119799#M899615</guid>
      <dc:creator />
      <dc:date>2016-07-21T18:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: need help to update macro code</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-to-update-macro-code/m-p/1119800#M899616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, you could store these values in one or several variables, maybe:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set table = ActiveDocument.GetSheetObject( "CH01" )&lt;/P&gt;&lt;P&gt;w = table.GetColumnCount&lt;/P&gt;&lt;P&gt;h = table.GetRowCount&lt;/P&gt;&lt;P&gt;set CellMatrix = table.GetCells2(0,0,w,h)&lt;/P&gt;&lt;P&gt;for RowIter=0 to h-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="text-decoration: line-through;"&gt;'for ColIter=0 to w-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'msgbox(CellMatrix(RowIter)(ColIter).Text)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'next&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vValue = vValue &amp;amp; "," &amp;amp; CellMatrix(RowIter)(&lt;STRONG&gt;2&lt;/STRONG&gt;).Text&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.Variables("vValue").SetContent cell.text, True&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then you could for example count the number of values in this array-like string with substringcount() and access single values with subfield() - there are many ways how you could store and read these values - it will depend on your requirements which are the best/simplest way to get them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 05:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-to-update-macro-code/m-p/1119800#M899616</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-07-22T05:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: need help to update macro code</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-to-update-macro-code/m-p/1119801#M899617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks Marcus, its showing all the cells and now i want them to keep date cells in vValue1 and amount cells in vValue2 and then call these two variables in text box for xirr calc as xirr(vValue1,vValue2). &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Can u see my attached file and help me out with this. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;i appreciate ur help.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 12:45:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-to-update-macro-code/m-p/1119801#M899617</guid>
      <dc:creator />
      <dc:date>2016-07-22T12:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: need help to update macro code</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-to-update-macro-code/m-p/1119802#M899618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here the macro is setting the variables to the values of the chart - whereby I have no idea from XIRR and how do you could use it within a textbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 14:57:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-to-update-macro-code/m-p/1119802#M899618</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-07-22T14:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: need help to update macro code</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-to-update-macro-code/m-p/1119803#M899619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks fro reply marcus,&lt;/P&gt;&lt;P&gt;the macro is making variables to values of chart means all values of column xirr_date is coming in variable vValue1? is this correct what i understood?? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 15:21:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-to-update-macro-code/m-p/1119803#M899619</guid>
      <dc:creator />
      <dc:date>2016-07-22T15:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: need help to update macro code</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-to-update-macro-code/m-p/1119804#M899620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;marcus can i use the variable anywhere like in any sheet object? and does my variable is holding all chart values or specific colum with all rows ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 16:23:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-to-update-macro-code/m-p/1119804#M899620</guid>
      <dc:creator />
      <dc:date>2016-07-22T16:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: need help to update macro code</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-to-update-macro-code/m-p/1119805#M899621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case all available rows within the object will be stored into both variables - therefore it will be a matter of the selections which values are included.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 17:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-to-update-macro-code/m-p/1119805#M899621</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-07-22T17:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: need help to update macro code</title>
      <link>https://community.qlik.com/t5/QlikView/need-help-to-update-macro-code/m-p/1119806#M899622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After all I'm not sure if the transfer from the table-object to the macro and from there into gui-variables really useful - I think you could what you want to do better achieve if you do it directly within gui. You might need for this advanced aggregations with the aggr-function but this is better and easier then to handle array-string within variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jul 2016 17:54:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/need-help-to-update-macro-code/m-p/1119806#M899622</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-07-22T17:54:34Z</dc:date>
    </item>
  </channel>
</rss>

