<?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: Combine two Excel Worksheet in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Combine-two-Excel-Worksheet/m-p/292468#M16643</link>
    <description>&lt;P&gt;Hi Xia,&lt;/P&gt;&lt;P&gt;This code worked for me. But is there any way to keep the formats of the existing excel sheets ? ( for eg - I lost the colours etc in the cobined version)&lt;/P&gt;</description>
    <pubDate>Thu, 18 Aug 2016 14:42:45 GMT</pubDate>
    <dc:creator>Teena1</dc:creator>
    <dc:date>2016-08-18T14:42:45Z</dc:date>
    <item>
      <title>Combine two Excel Worksheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Combine-two-Excel-Worksheet/m-p/202656#M13484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had two excel workbook, how i can combine these two excel workbook into one excel workbook with two separate sheets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What the sas code for doing that? please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;Jack&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 20:14:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Combine-two-Excel-Worksheet/m-p/202656#M13484</guid>
      <dc:creator>JackZhang</dc:creator>
      <dc:date>2015-03-16T20:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Combine two Excel Worksheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Combine-two-Excel-Worksheet/m-p/202657#M13485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are talking about exporting to two separate sheets in the same workbook use this template:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods _all_ close;&lt;/P&gt;&lt;P&gt;ods tagsets.ExcelXP path='PATH' file='OUTPUT.xml'&lt;/P&gt;&lt;P&gt;style=printer;&lt;/P&gt;&lt;P&gt;ods tagsets.ExcelXP options(sheet_name='SHEET NAME ONE' AUTOFILTER = 'ALL');&lt;/P&gt;&lt;P&gt;proc print data=FILE1 noobs;&lt;/P&gt;&lt;P&gt;var _all_;run;quit;&lt;/P&gt;&lt;P&gt;ods tagsets.ExcelXP options(sheet_name='SHEET NAME TWO' AUTOFILTER = 'ALL');&lt;/P&gt;&lt;P&gt;proc print data=FILE2 noobs;&lt;/P&gt;&lt;P&gt;var _all_;run;quit;&lt;/P&gt;&lt;P&gt;ods tagsets.ExcelXP close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 20:26:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Combine-two-Excel-Worksheet/m-p/202657#M13485</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-03-16T20:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Combine two Excel Worksheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Combine-two-Excel-Worksheet/m-p/202658#M13486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. So here data=file1, is this sas data or can be excel file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because I try to produce one sheet using SAS but other sheet is produced by excel. Then I try to combine these two sheets into one workbook for report purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And first sheet need to be updated daily by SAS automatically.&lt;/P&gt;&lt;P&gt;That is why I need to integrate two together by SAS &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Jack&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 20:46:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Combine-two-Excel-Worksheet/m-p/202658#M13486</guid>
      <dc:creator>JackZhang</dc:creator>
      <dc:date>2015-03-16T20:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Combine two Excel Worksheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Combine-two-Excel-Worksheet/m-p/202659#M13487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to provide more information if you need more explicit help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Based on what you've mentioned so far, I would use SYSEXEC or X command to copy the file over each day and then PROC EXPORT my data out to the excel file. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 22:00:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Combine-two-Excel-Worksheet/m-p/202659#M13487</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-03-16T22:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Combine two Excel Worksheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Combine-two-Excel-Worksheet/m-p/202660#M13488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You mean combine two excel files into one excel file ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname x1&amp;nbsp; excel 'c:\temp\x1.xls';&lt;/P&gt;&lt;P&gt;libname x2&amp;nbsp; excel 'c:\temp\x2.xls';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;libname x&amp;nbsp; excel 'c:\temp\x.xls';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data x.'Sheet1$'n;&lt;/P&gt;&lt;P&gt;set x1.'Sheet1$'n;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data x.'Sheet2$'n;&lt;/P&gt;&lt;P&gt;set x2.'Sheet1$'n;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 08:31:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Combine-two-Excel-Worksheet/m-p/202660#M13488</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-03-17T08:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: Combine two Excel Worksheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Combine-two-Excel-Worksheet/m-p/202661#M13489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could also think about it the other way round.&amp;nbsp; Use SAS to generate CSV output each day to a set file.&amp;nbsp; Then in your Excel file has an OnOpen VBA macro which loads that CSV into your Excel file.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 09:18:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Combine-two-Excel-Worksheet/m-p/202661#M13489</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-03-17T09:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Combine two Excel Worksheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Combine-two-Excel-Worksheet/m-p/202662#M13490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect. Thank you guys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 20:35:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Combine-two-Excel-Worksheet/m-p/202662#M13490</guid>
      <dc:creator>JackZhang</dc:creator>
      <dc:date>2015-03-17T20:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Combine two Excel Worksheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Combine-two-Excel-Worksheet/m-p/292468#M16643</link>
      <description>&lt;P&gt;Hi Xia,&lt;/P&gt;&lt;P&gt;This code worked for me. But is there any way to keep the formats of the existing excel sheets ? ( for eg - I lost the colours etc in the cobined version)&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2016 14:42:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Combine-two-Excel-Worksheet/m-p/292468#M16643</guid>
      <dc:creator>Teena1</dc:creator>
      <dc:date>2016-08-18T14:42:45Z</dc:date>
    </item>
  </channel>
</rss>

