<?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: Excel 2007: push button  to automate WRS report download. in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-2007-push-button-to-automate-WRS-report-download/m-p/24603#M485</link>
    <description>It is possible with the SAS Add-in to Microsoft Office (AMO) 4.3 (due to quite a few scripting improvements), but not in AMO 4.2.  With AMO 4.3, you could associate VBA code similar to the following with your push button:&lt;BR /&gt;
&lt;BR /&gt;
Sub OpenReport()&lt;BR /&gt;
&lt;BR /&gt;
    Dim SAS As SASExcelAddIn&lt;BR /&gt;
    Dim report As SASReport&lt;BR /&gt;
    Dim pathToReport As String&lt;BR /&gt;
    Dim destination As Range&lt;BR /&gt;
    &lt;BR /&gt;
    Set pathToReport = "/BIP Tree/ReportStudio/Shared/Reports/Sonny/SimpleSuite/TablewithTotals.srx"&lt;BR /&gt;
    Set destination = ActiveCell&lt;BR /&gt;
    Set SAS = Application.COMAddIns("SAS.ExcelAddIn").Object&lt;BR /&gt;
    Set report = SAS.InsertReportFromSasFolder(pathToReport, destination)&lt;BR /&gt;
    &lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
In addition to inserting reports, in AMO 4.3 you can also programmatically open data, run stored processes, create Pivot Tables, modify and refresh content, among other things.&lt;BR /&gt;
&lt;BR /&gt;
Note: Using Excel's Record Macro feature does not capture AMO operations.</description>
    <pubDate>Thu, 28 Oct 2010 16:28:36 GMT</pubDate>
    <dc:creator>CaseySmith</dc:creator>
    <dc:date>2010-10-28T16:28:36Z</dc:date>
    <item>
      <title>Excel 2007: push button  to automate WRS report download.</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-2007-push-button-to-automate-WRS-report-download/m-p/24602#M484</link>
      <description>Hi,&lt;BR /&gt;
I was wondering if it's possibile to build a push button in Excel 2007 to automate (after proper login to metadata server) the download from a WRS report.&lt;BR /&gt;
The report has several prompts.&lt;BR /&gt;
I tried to record and assign a macro-button for that but does not seems to work; the macro doesn't work too.&lt;BR /&gt;
Any tips about?&lt;BR /&gt;
I'm using WRS  and Addin for Office 4.2 on SAS 9.2 M2.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Costas</description>
      <pubDate>Thu, 28 Oct 2010 15:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-2007-push-button-to-automate-WRS-report-download/m-p/24602#M484</guid>
      <dc:creator>Costas</dc:creator>
      <dc:date>2010-10-28T15:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Excel 2007: push button  to automate WRS report download.</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-2007-push-button-to-automate-WRS-report-download/m-p/24603#M485</link>
      <description>It is possible with the SAS Add-in to Microsoft Office (AMO) 4.3 (due to quite a few scripting improvements), but not in AMO 4.2.  With AMO 4.3, you could associate VBA code similar to the following with your push button:&lt;BR /&gt;
&lt;BR /&gt;
Sub OpenReport()&lt;BR /&gt;
&lt;BR /&gt;
    Dim SAS As SASExcelAddIn&lt;BR /&gt;
    Dim report As SASReport&lt;BR /&gt;
    Dim pathToReport As String&lt;BR /&gt;
    Dim destination As Range&lt;BR /&gt;
    &lt;BR /&gt;
    Set pathToReport = "/BIP Tree/ReportStudio/Shared/Reports/Sonny/SimpleSuite/TablewithTotals.srx"&lt;BR /&gt;
    Set destination = ActiveCell&lt;BR /&gt;
    Set SAS = Application.COMAddIns("SAS.ExcelAddIn").Object&lt;BR /&gt;
    Set report = SAS.InsertReportFromSasFolder(pathToReport, destination)&lt;BR /&gt;
    &lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
In addition to inserting reports, in AMO 4.3 you can also programmatically open data, run stored processes, create Pivot Tables, modify and refresh content, among other things.&lt;BR /&gt;
&lt;BR /&gt;
Note: Using Excel's Record Macro feature does not capture AMO operations.</description>
      <pubDate>Thu, 28 Oct 2010 16:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-2007-push-button-to-automate-WRS-report-download/m-p/24603#M485</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2010-10-28T16:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Excel 2007: push button  to automate WRS report download.</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-2007-push-button-to-automate-WRS-report-download/m-p/24604#M486</link>
      <description>Thank you very much.&lt;BR /&gt;
Ther's an hotfix to upgrade Addin Office AMO 4.2 =&amp;gt; 4.3 or I nedd a new installation of SAS 9.2 M3?&lt;BR /&gt;
&lt;BR /&gt;
best regards.&lt;BR /&gt;
Costas</description>
      <pubDate>Fri, 29 Oct 2010 10:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-2007-push-button-to-automate-WRS-report-download/m-p/24604#M486</guid>
      <dc:creator>Costas</dc:creator>
      <dc:date>2010-10-29T10:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: Excel 2007: push button  to automate WRS report download.</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-2007-push-button-to-automate-WRS-report-download/m-p/24605#M487</link>
      <description>You would need new installation media, yes SAS 9.2 M3.</description>
      <pubDate>Fri, 29 Oct 2010 13:07:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-2007-push-button-to-automate-WRS-report-download/m-p/24605#M487</guid>
      <dc:creator>CaseySmith</dc:creator>
      <dc:date>2010-10-29T13:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Excel 2007: push button  to automate WRS report download.</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-2007-push-button-to-automate-WRS-report-download/m-p/24606#M488</link>
      <description>Thank you very much.&lt;BR /&gt;
&lt;BR /&gt;
Costas</description>
      <pubDate>Wed, 03 Nov 2010 09:13:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Excel-2007-push-button-to-automate-WRS-report-download/m-p/24606#M488</guid>
      <dc:creator>Costas</dc:creator>
      <dc:date>2010-11-03T09:13:40Z</dc:date>
    </item>
  </channel>
</rss>

