<?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 proc export error : Can not replace sheet because it has existing formulas that reference other page in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-export-error-Can-not-replace-sheet-because-it-has-existing/m-p/592985#M170110</link>
    <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to export few datasets to different sheets of a excel file with the below code . It works fine but for one sheet it throws&amp;nbsp; below error. If i delete that sheet and run again it works fine. But i cannot delete that sheet because there are many other graphs that reference from the sheet. Any help is greatly appreciated. I am using SAS 9.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export data=stattrans&lt;BR /&gt;outfile= "&amp;amp;OUTDIR.\&amp;amp;loan_type._&amp;amp;product._report.xlsx" dbms=excel2007 replace;&lt;BR /&gt;SHEET="DATA_&amp;amp;testname.stat";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error :&amp;nbsp;Can not replace sheet because it has existing formulas that reference other page&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2019 11:12:40 GMT</pubDate>
    <dc:creator>Lazygeek</dc:creator>
    <dc:date>2019-10-01T11:12:40Z</dc:date>
    <item>
      <title>proc export error : Can not replace sheet because it has existing formulas that reference other page</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-error-Can-not-replace-sheet-because-it-has-existing/m-p/592985#M170110</link>
      <description>&lt;P&gt;Hi ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to export few datasets to different sheets of a excel file with the below code . It works fine but for one sheet it throws&amp;nbsp; below error. If i delete that sheet and run again it works fine. But i cannot delete that sheet because there are many other graphs that reference from the sheet. Any help is greatly appreciated. I am using SAS 9.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc export data=stattrans&lt;BR /&gt;outfile= "&amp;amp;OUTDIR.\&amp;amp;loan_type._&amp;amp;product._report.xlsx" dbms=excel2007 replace;&lt;BR /&gt;SHEET="DATA_&amp;amp;testname.stat";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error :&amp;nbsp;Can not replace sheet because it has existing formulas that reference other page&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 11:12:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-error-Can-not-replace-sheet-because-it-has-existing/m-p/592985#M170110</guid>
      <dc:creator>Lazygeek</dc:creator>
      <dc:date>2019-10-01T11:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc export error : Can not replace sheet because it has existing formulas that reference other</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-error-Can-not-replace-sheet-because-it-has-existing/m-p/593085#M170145</link>
      <description>Does the sheet being replaced have formulas?&lt;BR /&gt;Have you tried using a named range instead? Or a different DBMS?</description>
      <pubDate>Tue, 01 Oct 2019 16:12:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-error-Can-not-replace-sheet-because-it-has-existing/m-p/593085#M170145</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-01T16:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: proc export error : Can not replace sheet because it has existing formulas that reference other</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-error-Can-not-replace-sheet-because-it-has-existing/m-p/593211#M170205</link>
      <description>&lt;P&gt;I prefer to have the data sheets separate from the report sheets to avoid this kind of issue and to keep things clean and simple.&lt;/P&gt;
&lt;P&gt;If that's not an option, a named range might be another way as mentioned.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 21:08:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-error-Can-not-replace-sheet-because-it-has-existing/m-p/593211#M170205</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-10-01T21:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: proc export error : Can not replace sheet because it has existing formulas that reference other</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-error-Can-not-replace-sheet-because-it-has-existing/m-p/602686#M174516</link>
      <description>&lt;P&gt;Hi Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Sorry for the late response. Changing DBMS worked. Your help is much appreciated. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;LzG&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 07:48:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-error-Can-not-replace-sheet-because-it-has-existing/m-p/602686#M174516</guid>
      <dc:creator>Lazygeek</dc:creator>
      <dc:date>2019-11-08T07:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc export error : Can not replace sheet because it has existing formulas that reference other</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-error-Can-not-replace-sheet-because-it-has-existing/m-p/602687#M174517</link>
      <description>Hi Chris, in this case changing the DBMS worked for me. But your suggestion for using named ranges helped me to solve other issue. Kudos !! Thanks .</description>
      <pubDate>Fri, 08 Nov 2019 07:47:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-error-Can-not-replace-sheet-because-it-has-existing/m-p/602687#M174517</guid>
      <dc:creator>Lazygeek</dc:creator>
      <dc:date>2019-11-08T07:47:49Z</dc:date>
    </item>
  </channel>
</rss>

