<?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: PROC Export: Replacing sheet error in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Export-Replacing-sheet-error/m-p/515356#M73239</link>
    <description>&lt;P&gt;Hi, is there any progress on this? I keep getting the error even when there are clearly NO formulas in the sheet into which the data are exported (but obviously there are formulas in other sheets which link to these data, that is the whole point of using an Excel template).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: It seems the workaround for me is to export data to CSV, and then use Excel &lt;STRONG&gt;connections &lt;/STRONG&gt;feature, which link certain ranges in an Excel&amp;nbsp;workbook with external CSVs. The advantage of this method is that you may link ranges anywhere in the given sheet, that means that you can have charts/formulas on the same sheet as your imported data, which is not possible with the SAS xlsx proc export.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Nov 2018 14:49:40 GMT</pubDate>
    <dc:creator>PavelD</dc:creator>
    <dc:date>2018-11-22T14:49:40Z</dc:date>
    <item>
      <title>PROC Export: Replacing sheet error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Export-Replacing-sheet-error/m-p/239016#M55471</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used to be able to run the PROC EXPORT code below without any issues but now SAS gives me an error. I suspect it is because IT just installed&amp;nbsp;a maintenance release. Do you think it is the reason and is there an option to avoid this error?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc export data=final&lt;BR /&gt; outfile="\\fileshare\users\rm\example5.xlsx"&lt;BR /&gt; dbms=xlsx replace ;&lt;BR /&gt; sheet="Data_import";&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I Get the error message:&lt;/P&gt;
&lt;P&gt;Can not replace sheet because it has existing formulas that reference other pages&lt;BR /&gt;ERROR: Export unsuccessful. See SAS Log for details.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2015 00:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Export-Replacing-sheet-error/m-p/239016#M55471</guid>
      <dc:creator>mrom34</dc:creator>
      <dc:date>2015-12-12T00:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Export: Replacing sheet error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Export-Replacing-sheet-error/m-p/239033#M55477</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This error is mentioned in&amp;nbsp;in "SAS/ACCESS(R) 9.4 Interface to PC Files: Reference, Third Edition" &lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/67382/HTML/default/viewer.htm#p1d0tocg3njhmfn1d4ld2covlwm0.htm" target="_self"&gt;EXPORT Procedure&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"If you use the EXPORT procedure with DBMS=XLSX and the page has formulas that reference other pages, an error message is written to the log. The error states that the page cannot be replaced because it has formulas that reference other pages."&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2015 14:42:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Export-Replacing-sheet-error/m-p/239033#M55477</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2015-12-12T14:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Export: Replacing sheet error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Export-Replacing-sheet-error/m-p/312160#M61384</link>
      <description>&lt;P&gt;I have seen this error,&lt;/P&gt;&lt;P&gt;"Can not replace sheet because it has existing formulas that reference other pages",&lt;/P&gt;&lt;P&gt;even in cases where the sheet did not contain any formulas. We are currently experiencing problems with Proc Export corrupting Excel files. My understanding was that this was supposed to have been fixed in&amp;nbsp;7.12 HF2 but we are still seeing issues. It would be really great if someone were to include a link to that support issue because I'm not finding anything about it on this site. I can only conclude that I'm not looking in the right places because our issue is replicable.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2016 23:25:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Export-Replacing-sheet-error/m-p/312160#M61384</guid>
      <dc:creator>stephglo</dc:creator>
      <dc:date>2016-11-16T23:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Export: Replacing sheet error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Export-Replacing-sheet-error/m-p/312167#M61385</link>
      <description>&lt;P&gt;Looks like this SAS note is relevant:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/58/890.html" target="_blank"&gt;http://support.sas.com/kb/58/890.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might want to check Maintenance 4 (SAS 9.4 TS1M4) when it is released in the next week or so to see if this is now fixed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A workaround would be to replace formulas with values using Paste Special.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2016 00:04:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Export-Replacing-sheet-error/m-p/312167#M61385</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-11-17T00:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Export: Replacing sheet error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Export-Replacing-sheet-error/m-p/515356#M73239</link>
      <description>&lt;P&gt;Hi, is there any progress on this? I keep getting the error even when there are clearly NO formulas in the sheet into which the data are exported (but obviously there are formulas in other sheets which link to these data, that is the whole point of using an Excel template).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: It seems the workaround for me is to export data to CSV, and then use Excel &lt;STRONG&gt;connections &lt;/STRONG&gt;feature, which link certain ranges in an Excel&amp;nbsp;workbook with external CSVs. The advantage of this method is that you may link ranges anywhere in the given sheet, that means that you can have charts/formulas on the same sheet as your imported data, which is not possible with the SAS xlsx proc export.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 14:49:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Export-Replacing-sheet-error/m-p/515356#M73239</guid>
      <dc:creator>PavelD</dc:creator>
      <dc:date>2018-11-22T14:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Export: Replacing sheet error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Export-Replacing-sheet-error/m-p/515423#M73241</link>
      <description>&lt;P&gt;What SAS 9.4 maintenance release are you on? It is supposed to be fixed in 9.4 M4.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 20:01:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Export-Replacing-sheet-error/m-p/515423#M73241</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-11-22T20:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC Export: Replacing sheet error</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-Export-Replacing-sheet-error/m-p/519051#M73350</link>
      <description>We have 9.4.3.0. I am not sure whether the version mentioned by you (9.4 M4) is more or less recent? Anyway, the "Excel connections" workaround works well for the moment and for my needs. Regarding the hot fix, it cannot be installed on our system now, I don't know why. Thanks Kiwi</description>
      <pubDate>Thu, 06 Dec 2018 08:19:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-Export-Replacing-sheet-error/m-p/519051#M73350</guid>
      <dc:creator>PavelD</dc:creator>
      <dc:date>2018-12-06T08:19:41Z</dc:date>
    </item>
  </channel>
</rss>

