<?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: Sample code to refresh an excel sheet using vba from SAS in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Sample-code-to-refresh-an-excel-sheet-using-vba-from-SAS/m-p/278853#M1854</link>
    <description>&lt;P&gt;I've only seen VBA called from DDE. Can you execute X commands?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you exporting to the same workbook?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have your VBA code or need that code developed as well?&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jun 2016 22:06:14 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-06-20T22:06:14Z</dc:date>
    <item>
      <title>Sample code to refresh an excel sheet using vba from SAS</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Sample-code-to-refresh-an-excel-sheet-using-vba-from-SAS/m-p/278844#M1851</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please provide a sample vba code that refreshes an excel sheet (with pivot table) from PC SAS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I searched but no luck , so thought of posting here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 21:45:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Sample-code-to-refresh-an-excel-sheet-using-vba-from-SAS/m-p/278844#M1851</guid>
      <dc:creator>renjithr</dc:creator>
      <dc:date>2016-06-20T21:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code to refresh an excel sheet using vba from SAS</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Sample-code-to-refresh-an-excel-sheet-using-vba-from-SAS/m-p/278846#M1852</link>
      <description>&lt;P&gt;This is a SAS forum. VBA code would come from a Microsoft forum, wouldn't it?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How does SAS fit into this process? Your question is unclear.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 21:55:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Sample-code-to-refresh-an-excel-sheet-using-vba-from-SAS/m-p/278846#M1852</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-20T21:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code to refresh an excel sheet using vba from SAS</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Sample-code-to-refresh-an-excel-sheet-using-vba-from-SAS/m-p/278850#M1853</link>
      <description>&lt;P&gt;Sorry for being unclear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a sas program that creates an excel spreadhseet and lately I have been creating a pivot table in the excel using the data that my SAS program produced. I came to know that using some vba code in SAS, the refresh of the pivot table can be automated via SAS/VBA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope I made it clear this time.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 22:01:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Sample-code-to-refresh-an-excel-sheet-using-vba-from-SAS/m-p/278850#M1853</guid>
      <dc:creator>renjithr</dc:creator>
      <dc:date>2016-06-20T22:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code to refresh an excel sheet using vba from SAS</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Sample-code-to-refresh-an-excel-sheet-using-vba-from-SAS/m-p/278853#M1854</link>
      <description>&lt;P&gt;I've only seen VBA called from DDE. Can you execute X commands?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you exporting to the same workbook?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have your VBA code or need that code developed as well?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 22:06:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Sample-code-to-refresh-an-excel-sheet-using-vba-from-SAS/m-p/278853#M1854</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-20T22:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code to refresh an excel sheet using vba from SAS</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Sample-code-to-refresh-an-excel-sheet-using-vba-from-SAS/m-p/278855#M1855</link>
      <description>&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/Updating-Extrenal-Excel-Pivot-Table-in-SAS/m-p/167515" target="_blank"&gt;https://communities.sas.com/t5/SAS-Procedures/Updating-Extrenal-Excel-Pivot-Table-in-SAS/m-p/167515&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 22:08:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Sample-code-to-refresh-an-excel-sheet-using-vba-from-SAS/m-p/278855#M1855</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-20T22:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code to refresh an excel sheet using vba from SAS</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Sample-code-to-refresh-an-excel-sheet-using-vba-from-SAS/m-p/278858#M1856</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a sample VBA code I am working on( Code does not work).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;BR /&gt; file "c:\test\ir_formatter.vbs";&lt;BR /&gt; put&lt;/P&gt;
&lt;P&gt;'Dim XL' /&lt;BR /&gt; 'SET XL = CreateObject("Excel.Application")' /&lt;BR /&gt; 'XL.Visible = False' /&lt;BR /&gt; 'XL.DisplayAlerts = False' /&lt;BR /&gt; 'SET objWorkbook1 = XL.Workbooks.Open("("C:\test\book2.xlsm")")' /&lt;BR /&gt; 'XL.RUN "("'C:\test\book2.xlsm.'!sheet1.helloworld")" ' /&lt;BR /&gt; 'objWorkbook1.save' /&lt;BR /&gt; 'XL.ActiveWorkbook.Close' /&lt;BR /&gt; 'XL.DisplayAlerts = True' /&lt;BR /&gt; 'SET objWorkbook1 = Nothing' /&lt;BR /&gt; 'SET XL = Nothing' /;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;/* Execute VBA */&lt;BR /&gt;x 'c:\test\ir_formatter.vbs';&lt;BR /&gt;filename vbs "c:\test\irformatter.vbs";&lt;BR /&gt;data _null_;&lt;BR /&gt; rc=fdelete('vbs');&lt;BR /&gt;run;&lt;BR /&gt;filename vbs clear;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 22:10:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Sample-code-to-refresh-an-excel-sheet-using-vba-from-SAS/m-p/278858#M1856</guid>
      <dc:creator>renjithr</dc:creator>
      <dc:date>2016-06-20T22:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code to refresh an excel sheet using vba from SAS</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Sample-code-to-refresh-an-excel-sheet-using-vba-from-SAS/m-p/278860#M1857</link>
      <description>&lt;P&gt;VBS is not quite the same as VBA... Just a friendly note.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 22:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Sample-code-to-refresh-an-excel-sheet-using-vba-from-SAS/m-p/278860#M1857</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-20T22:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code to refresh an excel sheet using vba from SAS</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Sample-code-to-refresh-an-excel-sheet-using-vba-from-SAS/m-p/278861#M1858</link>
      <description>&lt;P&gt;Thanks for the clarification Reeza!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2016 22:16:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Sample-code-to-refresh-an-excel-sheet-using-vba-from-SAS/m-p/278861#M1858</guid>
      <dc:creator>renjithr</dc:creator>
      <dc:date>2016-06-20T22:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code to refresh an excel sheet using vba from SAS</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Sample-code-to-refresh-an-excel-sheet-using-vba-from-SAS/m-p/278862#M1859</link>
      <description>If you get a VBS working and you can use X command you can execute via &lt;BR /&gt;&lt;BR /&gt;X 'path to vbs code';</description>
      <pubDate>Mon, 20 Jun 2016 22:21:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Sample-code-to-refresh-an-excel-sheet-using-vba-from-SAS/m-p/278862#M1859</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-06-20T22:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sample code to refresh an excel sheet using vba from SAS</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Sample-code-to-refresh-an-excel-sheet-using-vba-from-SAS/m-p/278944#M1860</link>
      <description>&lt;P&gt;Why not do it the other way round. &amp;nbsp;Your obviously fixed on using Excel, so why not use that as the driver? &amp;nbsp;Export the data from SAS as plain CSV file, then have the Excel file load the CSV data and populate its sheets appropriately usng VBA. &amp;nbsp;Simple and less messing around trying to force one application from another.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2016 08:33:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Sample-code-to-refresh-an-excel-sheet-using-vba-from-SAS/m-p/278944#M1860</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-06-21T08:33:38Z</dc:date>
    </item>
  </channel>
</rss>

