<?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: Invoke SAS refresh in SAS add in for office using Excel VBA in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Invoke-SAS-refresh-in-SAS-add-in-for-office-using-Excel-VBA/m-p/38079#M635</link>
    <description>Please clarify (for me at least) your requirement - you want to launch a SAS execution from Excel VBA code (executing SAS on the local machine), and with a SAS program, you want to "refresh" or replace some existing SAS datasets using the Excel workbook contents as input?&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Fri, 29 May 2009 17:46:58 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-05-29T17:46:58Z</dc:date>
    <item>
      <title>Invoke SAS refresh in SAS add in for office using Excel VBA</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Invoke-SAS-refresh-in-SAS-add-in-for-office-using-Excel-VBA/m-p/38078#M634</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Is there a way to refresh multiple data sets mapped to the excel spread sheet (using sas add in) through Excel VBA?&lt;BR /&gt;
&lt;BR /&gt;
What am looking at is on opening the excel spread sheet the vba code will automatically refresh all data sets using the refresh multiple option in SAS addin.&lt;BR /&gt;
&lt;BR /&gt;
Please share your insights on this.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Thu, 28 May 2009 15:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Invoke-SAS-refresh-in-SAS-add-in-for-office-using-Excel-VBA/m-p/38078#M634</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-28T15:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke SAS refresh in SAS add in for office using Excel VBA</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Invoke-SAS-refresh-in-SAS-add-in-for-office-using-Excel-VBA/m-p/38079#M635</link>
      <description>Please clarify (for me at least) your requirement - you want to launch a SAS execution from Excel VBA code (executing SAS on the local machine), and with a SAS program, you want to "refresh" or replace some existing SAS datasets using the Excel workbook contents as input?&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Fri, 29 May 2009 17:46:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Invoke-SAS-refresh-in-SAS-add-in-for-office-using-Excel-VBA/m-p/38079#M635</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-29T17:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke SAS refresh in SAS add in for office using Excel VBA</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Invoke-SAS-refresh-in-SAS-add-in-for-office-using-Excel-VBA/m-p/38080#M636</link>
      <description>Yes, there are two ways:&lt;BR /&gt;
&lt;BR /&gt;
1) Via UI:&lt;BR /&gt;
Right-click the data view, select Properties, then check "Refresh on file open" on the Execution tab&lt;BR /&gt;
&lt;BR /&gt;
2) via VBA using AMO's basic scripting model:&lt;BR /&gt;
&lt;BR /&gt;
Sub RefreshWorkbook()&lt;BR /&gt;
&lt;BR /&gt;
    'get the addin&lt;BR /&gt;
    Dim ComAddin As ComAddin&lt;BR /&gt;
    Dim SasAddinObj As SASAddin&lt;BR /&gt;
    &lt;BR /&gt;
    Set ComAddin = Application.COMAddIns("SAS.OfficeAddin.Loader.ConnectProxy")&lt;BR /&gt;
    Set SasAddinObj = ComAddin.Object&lt;BR /&gt;
    Set ComAddin = Nothing&lt;BR /&gt;
        &lt;BR /&gt;
    ' refreshes all the AMO content (tasks, reports, data views, etc. in the workbook)&lt;BR /&gt;
    SasAddinObj.Refresh (Workbook)&lt;BR /&gt;
    &lt;BR /&gt;
End Sub</description>
      <pubDate>Fri, 14 Aug 2009 20:16:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Invoke-SAS-refresh-in-SAS-add-in-for-office-using-Excel-VBA/m-p/38080#M636</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2009-08-14T20:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke SAS refresh in SAS add in for office using Excel VBA</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Invoke-SAS-refresh-in-SAS-add-in-for-office-using-Excel-VBA/m-p/547143#M2358</link>
      <description>&lt;P&gt;Second way don't work in my file.&lt;/P&gt;&lt;P&gt;Compile error: User-defined type not defined.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've chenged "SasAddinObj As SASAddin"&amp;nbsp; to "Dim SasAddinObj As SASExcelAddIn".&lt;/P&gt;&lt;P&gt;I have error: Run-time error '9':&lt;/P&gt;&lt;P&gt;Subscript out of range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help me to refresh Pivot table with VBA.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 10:40:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Invoke-SAS-refresh-in-SAS-add-in-for-office-using-Excel-VBA/m-p/547143#M2358</guid>
      <dc:creator>Tatyana_iu</dc:creator>
      <dc:date>2019-03-29T10:40:08Z</dc:date>
    </item>
  </channel>
</rss>

