<?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 Sas add-in for office 8.3 - &amp;quot;Reset&amp;quot; method in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sas-add-in-for-office-8-3-quot-Reset-quot-method/m-p/899770#M355608</link>
    <description>&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;in SAS Visual Analytics, normally I create several reports saving it in my company's sas folders. Data inside reports can be updated daily, weekly and so on.&lt;/P&gt;&lt;P&gt;Through add-in, I can carry sas data into Excel. First time I have to "install" VA report in excel through "Reports" button on SAS menu. The issue is that next times (e.g. the day after), the "refresh" button proposes again old data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add-in.jpg" style="width: 573px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89050i1FE0AC81737E280B/image-dimensions/573x333?v=v2" width="573" height="333" role="button" title="add-in.jpg" alt="add-in.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get new data I'm forced to click on "reset" option in the drop-down list that appears by clicking on the three-dots menu of the SAS Panel:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add-in2.jpg" style="width: 659px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89051i66AD65C59F9FE44F/image-size/large?v=v2&amp;amp;px=999" role="button" title="add-in2.jpg" alt="add-in2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to do the same in VBA, according to this&amp;nbsp;&lt;A href="http://support.sas.com/resources/papers/proceedings11/012-2011.pdf" target="_blank" rel="noopener"&gt;article&lt;/A&gt;&amp;nbsp;, the "Refresh" method causes the same behaviour, I get again old data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is: There is a way in VBA to "reset" data&amp;nbsp;so that the new data can arrive in excel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I use:&lt;/P&gt;&lt;PRE&gt;Sub AggiornaSasAddIn(ObjName As String)    &lt;BR /&gt;    Dim sas As SASExcelAddIn
    
    Set sas = Application.COMAddIns.Item("SAS.ExcelAddIn").Object
    sas.Refresh ObjName
    Set sas = Nothing&lt;BR /&gt;End Sub&lt;/PRE&gt;&lt;P&gt;Thanks to all in advance&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2023 14:39:36 GMT</pubDate>
    <dc:creator>GiorgioDonelli</dc:creator>
    <dc:date>2023-10-24T14:39:36Z</dc:date>
    <item>
      <title>Sas add-in for office 8.3 - "Reset" method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-add-in-for-office-8-3-quot-Reset-quot-method/m-p/899770#M355608</link>
      <description>&lt;P&gt;HI all,&lt;/P&gt;&lt;P&gt;in SAS Visual Analytics, normally I create several reports saving it in my company's sas folders. Data inside reports can be updated daily, weekly and so on.&lt;/P&gt;&lt;P&gt;Through add-in, I can carry sas data into Excel. First time I have to "install" VA report in excel through "Reports" button on SAS menu. The issue is that next times (e.g. the day after), the "refresh" button proposes again old data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add-in.jpg" style="width: 573px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89050i1FE0AC81737E280B/image-dimensions/573x333?v=v2" width="573" height="333" role="button" title="add-in.jpg" alt="add-in.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get new data I'm forced to click on "reset" option in the drop-down list that appears by clicking on the three-dots menu of the SAS Panel:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="add-in2.jpg" style="width: 659px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89051i66AD65C59F9FE44F/image-size/large?v=v2&amp;amp;px=999" role="button" title="add-in2.jpg" alt="add-in2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to do the same in VBA, according to this&amp;nbsp;&lt;A href="http://support.sas.com/resources/papers/proceedings11/012-2011.pdf" target="_blank" rel="noopener"&gt;article&lt;/A&gt;&amp;nbsp;, the "Refresh" method causes the same behaviour, I get again old data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is: There is a way in VBA to "reset" data&amp;nbsp;so that the new data can arrive in excel?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code I use:&lt;/P&gt;&lt;PRE&gt;Sub AggiornaSasAddIn(ObjName As String)    &lt;BR /&gt;    Dim sas As SASExcelAddIn
    
    Set sas = Application.COMAddIns.Item("SAS.ExcelAddIn").Object
    sas.Refresh ObjName
    Set sas = Nothing&lt;BR /&gt;End Sub&lt;/PRE&gt;&lt;P&gt;Thanks to all in advance&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 14:39:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-add-in-for-office-8-3-quot-Reset-quot-method/m-p/899770#M355608</guid>
      <dc:creator>GiorgioDonelli</dc:creator>
      <dc:date>2023-10-24T14:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sas add-in for office 8.3 - "Reset" method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sas-add-in-for-office-8-3-quot-Reset-quot-method/m-p/902404#M356622</link>
      <description>&lt;P&gt;Hello Giorgio,&lt;/P&gt;
&lt;P&gt;In using Visual Basic coding with the SAS Add-in, we do not have the ability to "reset" the report in Visual Basic coding.&amp;nbsp; You will have to select it manually.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you have any additional questions regarding this issue.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 20:55:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sas-add-in-for-office-8-3-quot-Reset-quot-method/m-p/902404#M356622</guid>
      <dc:creator>KatS_SAS</dc:creator>
      <dc:date>2023-11-09T20:55:26Z</dc:date>
    </item>
  </channel>
</rss>

