<?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: Exporting to Excel - Excel file has all tabs (sheets) selected. How to prevent? in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Exporting-to-Excel-Excel-file-has-all-tabs-sheets-selected-How/m-p/106542#M1213</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have that issue and haven't seen it before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a run before the final libname statement though? I get errors if I don't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also don't specify ver=2007 in the original libname.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Dec 2012 17:55:48 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2012-12-21T17:55:48Z</dc:date>
    <item>
      <title>Exporting to Excel - Excel file has all tabs (sheets) selected. How to prevent?</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Exporting-to-Excel-Excel-file-has-all-tabs-sheets-selected-How/m-p/106541#M1212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the following code to export 3 SAS datasets to separate sheets in an Excel file. The exporting works fine, the file is small and has no bells or whistles. The problem is, when I open the Excel file, all 3 tabs are selected. When all tabs are selected, any change made on any cell will alter that cell on all selected tabs, which could be trouble if a user does not notice that all tabs are selected. One can manually open the Excel file, click on any tab but the first one, and then only that (single) tab/sheet will be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to tell SAS (or Excel?) not to select all sheets by default after SAS creates them? I have many of these sheets and would like to avoid opening each one, clicking on one of the tabs, then saving it. (I'm sure it can be done on a folder of files in VBA, but I am hoping SAS has some way to change this grouping behavior).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------------&lt;/P&gt;&lt;P&gt;LIBNAME finbook EXCEL 'C:\test.xlsx' VER=2007;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table finbook.data as&lt;BR /&gt;select * from ds.Final_3_named;&lt;BR /&gt;create table finbook.variables as&lt;BR /&gt;select * from ds.datainfo;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;DATA finbook.class;&lt;BR /&gt;SET sashelp.class;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;libname finbook clear;&lt;BR /&gt;---------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 17:47:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Exporting-to-Excel-Excel-file-has-all-tabs-sheets-selected-How/m-p/106541#M1212</guid>
      <dc:creator>ucdcrush</dc:creator>
      <dc:date>2012-12-21T17:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to Excel - Excel file has all tabs (sheets) selected. How to prevent?</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Exporting-to-Excel-Excel-file-has-all-tabs-sheets-selected-How/m-p/106542#M1213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have that issue and haven't seen it before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a run before the final libname statement though? I get errors if I don't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also don't specify ver=2007 in the original libname.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 17:55:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Exporting-to-Excel-Excel-file-has-all-tabs-sheets-selected-How/m-p/106542#M1213</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-12-21T17:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to Excel - Excel file has all tabs (sheets) selected. How to prevent?</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Exporting-to-Excel-Excel-file-has-all-tabs-sheets-selected-How/m-p/106543#M1214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reeza - I corrected the first post, I think I left that 'run;' part out of what I pasted in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways I tried by specifying .xls file and commented out the 2007, and it worked in that the tabs were not selected (grouped) when I opened the file. I guess that is a simple work around, even though puzzling why it happens with version = 2007. Thank you for replying.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 18:02:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Exporting-to-Excel-Excel-file-has-all-tabs-sheets-selected-How/m-p/106543#M1214</guid>
      <dc:creator>ucdcrush</dc:creator>
      <dc:date>2012-12-21T18:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting to Excel - Excel file has all tabs (sheets) selected. How to prevent?</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Exporting-to-Excel-Excel-file-has-all-tabs-sheets-selected-How/m-p/106544#M1215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can look at using excelcs and pc files server instead of ver=2007 to get an xlsx file if you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 18:10:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Exporting-to-Excel-Excel-file-has-all-tabs-sheets-selected-How/m-p/106544#M1215</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-12-21T18:10:56Z</dc:date>
    </item>
  </channel>
</rss>

