<?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: Replace and Export Tab in Excel (2013) using SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Replace-and-Export-Tab-in-Excel-2013-using-SAS/m-p/322894#M71493</link>
    <description>&lt;PRE&gt;
Drop it firstly, before export it.


libname xls xlsx "(Excel FilePath.xlsx)";

proc sql;
drop table xls.have;

create table xls.have as 
select * from have;
quit;

&lt;/PRE&gt;</description>
    <pubDate>Fri, 06 Jan 2017 10:37:05 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2017-01-06T10:37:05Z</dc:date>
    <item>
      <title>Replace and Export Tab in Excel (2013) using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-and-Export-Tab-in-Excel-2013-using-SAS/m-p/322890#M71491</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Been trying to replace/delete a sheet in excel (2013 - xslx) and export a dataset to the same workbook, although I seem to be hitting road blocks when it comes to directly modiying the excel spreadsheet.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've managed to set the libname:&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname xls xlsx "(Excel FilePath.xlsx)";&lt;/P&gt;&lt;P&gt;but I'm not able to modify the workbook directly from SAS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've seen some talk about using DDE but if there's a simple solution out there I would appreciate it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CF&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 03:44:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-and-Export-Tab-in-Excel-2013-using-SAS/m-p/322890#M71491</guid>
      <dc:creator>camfarrell25</dc:creator>
      <dc:date>2017-01-06T03:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Replace and Export Tab in Excel (2013) using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-and-Export-Tab-in-Excel-2013-using-SAS/m-p/322894#M71493</link>
      <description>&lt;PRE&gt;
Drop it firstly, before export it.


libname xls xlsx "(Excel FilePath.xlsx)";

proc sql;
drop table xls.have;

create table xls.have as 
select * from have;
quit;

&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Jan 2017 10:37:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-and-Export-Tab-in-Excel-2013-using-SAS/m-p/322894#M71493</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-01-06T10:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Replace and Export Tab in Excel (2013) using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-and-Export-Tab-in-Excel-2013-using-SAS/m-p/322899#M71497</link>
      <description>&lt;P&gt;In addition to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;'s method, I use PROC DATASETS to delete a sheet then add it again:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets library = xls;
  delete MySheet;
  run;
  copy in = WORK out = xls;
  select MySheet;
  run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Jan 2017 06:21:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-and-Export-Tab-in-Excel-2013-using-SAS/m-p/322899#M71497</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-01-06T06:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Replace and Export Tab in Excel (2013) using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Replace-and-Export-Tab-in-Excel-2013-using-SAS/m-p/322961#M71523</link>
      <description>&lt;P&gt;When using that code, I get the following error message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: XLS.DATA.DATA cannot be deleted because files cannot be deleted from the XLS library.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 13:33:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Replace-and-Export-Tab-in-Excel-2013-using-SAS/m-p/322961#M71523</guid>
      <dc:creator>camfarrell25</dc:creator>
      <dc:date>2017-01-06T13:33:30Z</dc:date>
    </item>
  </channel>
</rss>

