<?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: Copy - Paste - Rename worksheets in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Copy-Paste-Rename-worksheets/m-p/4308#M169</link>
    <description>Hi:&lt;BR /&gt;
  Your best bet for quick resolution of this question/problem is to contact Tech Support. To find out your options for contacting them, refer to:&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/contact/index.html" target="_blank"&gt;http://support.sas.com/techsup/contact/index.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
    <pubDate>Fri, 24 Aug 2007 16:30:19 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2007-08-24T16:30:19Z</dc:date>
    <item>
      <title>Copy - Paste - Rename worksheets</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Copy-Paste-Rename-worksheets/m-p/4307#M168</link>
      <description>I have an xls spreadsheet that I am going to use as a template.  It will consist of 1 tab and I'll call the tab Sheet1.  What I would like to do is create a tab for each provider number that exists in a data set (called priority_scale below).  I don't know what the activesheet syntax should be (other than it shouldn't be what I've written) and I'm sure I need a little help with the code after the first copy occurs.  Any help is much appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
&lt;BR /&gt;
OPTIONS NOXWAIT NOXSYNC;                                                 &lt;BR /&gt;
                                                                         &lt;BR /&gt;
X "'C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE'";              &lt;BR /&gt;
                                                                         &lt;BR /&gt;
DATA _NULL_;                                                             &lt;BR /&gt;
   zzzz = SLEEP(2);                                                      &lt;BR /&gt;
RUN;                                                                     &lt;BR /&gt;
                                                                         &lt;BR /&gt;
FILENAME CMDEXCEL DDE 'EXCEL|SYSTEM';                                    &lt;BR /&gt;
                                                                         &lt;BR /&gt;
DATA _NULL_;                                                             &lt;BR /&gt;
   FILE CMDEXCEL;                                                        &lt;BR /&gt;
   PUT "[OPEN(""N:\PUBLIC\Chip's Adhocs\MISC\priority_scale.xls"")]";&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
%MACRO BYPRV(PROV);                               &lt;BR /&gt;
                                                  &lt;BR /&gt;
data _null_;                                      &lt;BR /&gt;
 file CMDEXCEL;                                   &lt;BR /&gt;
 ACTIVESHEET.COPY AFTER:=ACTIVESHEET.NAME="&amp;amp;PROV";&lt;BR /&gt;
RUN;                                   &lt;BR /&gt;
                                                  &lt;BR /&gt;
%MEND BYPRV;                                      &lt;BR /&gt;
                                                  &lt;BR /&gt;
data _null_;                                      &lt;BR /&gt;
  set PRIORITY_SCALE;                             &lt;BR /&gt;
  BY PROV;                                        &lt;BR /&gt;
  IF FIRST.PROV THEN DO;                          &lt;BR /&gt;
call execute('%BYPRV('||PROV||')');               &lt;BR /&gt;
   END;                                           &lt;BR /&gt;
run;                                              &lt;BR /&gt;
quit;</description>
      <pubDate>Fri, 24 Aug 2007 14:21:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Copy-Paste-Rename-worksheets/m-p/4307#M168</guid>
      <dc:creator>Chip</dc:creator>
      <dc:date>2007-08-24T14:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Copy - Paste - Rename worksheets</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Copy-Paste-Rename-worksheets/m-p/4308#M169</link>
      <description>Hi:&lt;BR /&gt;
  Your best bet for quick resolution of this question/problem is to contact Tech Support. To find out your options for contacting them, refer to:&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/contact/index.html" target="_blank"&gt;http://support.sas.com/techsup/contact/index.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 24 Aug 2007 16:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Copy-Paste-Rename-worksheets/m-p/4308#M169</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-08-24T16:30:19Z</dc:date>
    </item>
  </channel>
</rss>

