<?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: Save Excel workbook generated with SAS Add-In with today's date in the filename in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Save-Excel-workbook-generated-with-SAS-Add-In-with-today-s-date/m-p/441179#M2206</link>
    <description>&lt;P&gt;I think the easiest would be to create a VBA-script that refreshes the data and then save the file with the dynamic file name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use this code to connect top sas and refresh the data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dim sas As SASExcelAddIn&lt;/P&gt;
&lt;P&gt;Set sas = Application.COMAddIns.Item("SAS.ExcelAddIn").Object&lt;BR /&gt; sas.Refresh ThisWorkbook&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
    <pubDate>Thu, 01 Mar 2018 13:02:46 GMT</pubDate>
    <dc:creator>FredrikE</dc:creator>
    <dc:date>2018-03-01T13:02:46Z</dc:date>
    <item>
      <title>Save Excel workbook generated with SAS Add-In with today's date in the filename</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Save-Excel-workbook-generated-with-SAS-Add-In-with-today-s-date/m-p/440990#M2205</link>
      <description>&lt;P&gt;I'm not sure if this is possible, but I am wanting to save an Excel workbook that is populated using the SAS Add-In with&amp;nbsp;the date the file was run in the filename.&amp;nbsp;(EX.-reportname_ddmmyyyy.xlsx).&amp;nbsp;I have&amp;nbsp;a copy file macro that one of my teammates used to accomplish this&amp;nbsp;in EG, but wasn't sure if this will&amp;nbsp;translate to&amp;nbsp;the Add-In. This is part of an automation effort, so minimal touches of the file are necessary. I am fairly new to SAS, so I apologize if this is a simple answer I missed or if it's just not possible.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 18:48:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Save-Excel-workbook-generated-with-SAS-Add-In-with-today-s-date/m-p/440990#M2205</guid>
      <dc:creator>kbone1975</dc:creator>
      <dc:date>2018-02-28T18:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Save Excel workbook generated with SAS Add-In with today's date in the filename</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Save-Excel-workbook-generated-with-SAS-Add-In-with-today-s-date/m-p/441179#M2206</link>
      <description>&lt;P&gt;I think the easiest would be to create a VBA-script that refreshes the data and then save the file with the dynamic file name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use this code to connect top sas and refresh the data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dim sas As SASExcelAddIn&lt;/P&gt;
&lt;P&gt;Set sas = Application.COMAddIns.Item("SAS.ExcelAddIn").Object&lt;BR /&gt; sas.Refresh ThisWorkbook&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 13:02:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Save-Excel-workbook-generated-with-SAS-Add-In-with-today-s-date/m-p/441179#M2206</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2018-03-01T13:02:46Z</dc:date>
    </item>
  </channel>
</rss>

