<?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: Updating named ranged cells in Excel using SAS 9.4 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Updating-named-ranged-cells-in-Excel-using-SAS-9-4/m-p/416725#M102340</link>
    <description>&lt;P&gt;As far as I am aware they have not removed the libname excel engine from 9.4, so you can still use your original code.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2017 15:29:17 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-11-28T15:29:17Z</dc:date>
    <item>
      <title>Updating named ranged cells in Excel using SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-named-ranged-cells-in-Excel-using-SAS-9-4/m-p/416722#M102338</link>
      <description>&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;FONT size="3"&gt;&lt;FONT color="#000000"&gt;In SAS 9.4, I’m trying to use LIBNAME XLSX to read and write to Excel files. I tried to update a named range using SAS 9.4, but it doesn’t work. One of the blog (link provided below) says that “&lt;/FONT&gt;&lt;I&gt;&lt;SPAN style="background: white; color: rgb(51, 51, 51);"&gt;the XLSX engine does not support Excel named ranges&lt;/SPAN&gt;&lt;/I&gt;&lt;SPAN style="background: white; color: rgb(51, 51, 51);"&gt;”&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2015/05/20/using-libname-xlsx-to-read-and-write-excel-files/" target="_blank"&gt;&lt;FONT color="#0000ff" size="3"&gt;https://blogs.sas.com/content/sasdummy/2015/05/20/using-libname-xlsx-to-read-and-write-excel-files/&lt;/FONT&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;FONT color="#000000" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;FONT size="3"&gt;&lt;FONT color="#000000"&gt;In SAS 9.3, I was able to update named range cells using the below code. I used “excel” engine to create a libref “&lt;/FONT&gt;&lt;SPAN style="background: white; color: black;"&gt;AFIL&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="#000000" size="3"&gt;” using LIBNAME statement. “&lt;/FONT&gt;&lt;FONT size="3"&gt;&lt;SPAN style="background: white; color: black;"&gt;Table_NamedRange” is a named range in the excel spreadsheet located in - &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple;"&gt;"V:\Test\ABC.xlsx”. &lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT color="#000000" size="3"&gt;I was able to update the named range cells in the excel sheet with the data from the SAS table “work.&lt;/FONT&gt;&lt;SPAN style="background: white; color: black;"&gt;&lt;FONT size="3"&gt;AFILData” (code provided below).&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;Below is the code I used in SAS 9.3, is there an equivalent code for 9.4?&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;FONT size="3"&gt;&lt;SPAN style="background: white; color: blue; font-family: &amp;quot;Courier New&amp;quot;;"&gt;libname&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt; AFIL &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: &amp;quot;Courier New&amp;quot;;"&gt;excel &lt;/SPAN&gt;&lt;SPAN style="background: white; color: purple; font-family: &amp;quot;Courier New&amp;quot;;"&gt;"V:\Test\ABC.xlsx”;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;&lt;SPAN style="background: white; color: navy; font-family: &amp;quot;Courier New&amp;quot;;"&gt;data&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt; AFIL.Table_NamedRange ;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;FONT size="3"&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="background: white; color: blue; font-family: &amp;quot;Courier New&amp;quot;;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt; work.AFILData;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;&lt;SPAN style="background: white; color: navy; font-family: &amp;quot;Courier New&amp;quot;;"&gt;Run&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0cm 0cm 0pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: &amp;quot;Cambria&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;FONT size="3"&gt;How can I update a named Range cell in excel using SAS 9.4?&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 15:21:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-named-ranged-cells-in-Excel-using-SAS-9-4/m-p/416722#M102338</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2017-11-28T15:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Updating named ranged cells in Excel using SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-named-ranged-cells-in-Excel-using-SAS-9-4/m-p/416724#M102339</link>
      <description>&lt;P&gt;It will help others to help you if you include the exact version of SAS, including maintenance release.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;- Latest version as of Nov2017 is 9.4M5 .&lt;/P&gt;
&lt;P&gt;Also operating system version and the release/version of EXCEL you are using.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 15:28:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-named-ranged-cells-in-Excel-using-SAS-9-4/m-p/416724#M102339</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-11-28T15:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Updating named ranged cells in Excel using SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-named-ranged-cells-in-Excel-using-SAS-9-4/m-p/416725#M102340</link>
      <description>&lt;P&gt;As far as I am aware they have not removed the libname excel engine from 9.4, so you can still use your original code.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 15:29:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-named-ranged-cells-in-Excel-using-SAS-9-4/m-p/416725#M102340</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-11-28T15:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Updating named ranged cells in Excel using SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-named-ranged-cells-in-Excel-using-SAS-9-4/m-p/416727#M102341</link>
      <description>&lt;P&gt;It's Version : 6.1.7601 Service Pack 1 Build 7601&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 15:38:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-named-ranged-cells-in-Excel-using-SAS-9-4/m-p/416727#M102341</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2017-11-28T15:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Updating named ranged cells in Excel using SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-named-ranged-cells-in-Excel-using-SAS-9-4/m-p/416728#M102342</link>
      <description>&lt;P&gt;This is the error I'm getting when executing the libname statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Connect: Class not registered&lt;/P&gt;
&lt;P&gt;ERROR: Error in the LIBNAME statement.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 15:40:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-named-ranged-cells-in-Excel-using-SAS-9-4/m-p/416728#M102342</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2017-11-28T15:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Updating named ranged cells in Excel using SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-named-ranged-cells-in-Excel-using-SAS-9-4/m-p/416749#M102347</link>
      <description>&lt;P&gt;Usually that Class not registered error message is an indication that your SAS and OFFICE installations are using different numbers of bits (32 vs 64).&amp;nbsp; If you cannot update your OFFICE installation to match your SAS installation then you will need to use the SAS PC Files Server to make the connection between SAS and EXCEL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/54/413.html" target="_blank"&gt;http://support.sas.com/kb/54/413.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 16:26:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-named-ranged-cells-in-Excel-using-SAS-9-4/m-p/416749#M102347</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-11-28T16:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: Updating named ranged cells in Excel using SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-named-ranged-cells-in-Excel-using-SAS-9-4/m-p/416755#M102348</link>
      <description>&lt;P&gt;In&amp;nbsp;9.3 I was using 64-bit and Excel was 32-bit, same as it is now..&amp;nbsp; when it worked&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 16:32:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-named-ranged-cells-in-Excel-using-SAS-9-4/m-p/416755#M102348</guid>
      <dc:creator>podarum</dc:creator>
      <dc:date>2017-11-28T16:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Updating named ranged cells in Excel using SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-named-ranged-cells-in-Excel-using-SAS-9-4/m-p/416759#M102349</link>
      <description>&lt;P&gt;Try PCFILES instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname myfile pcfiles path='path to xlsx';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;update code goes here.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 16:48:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-named-ranged-cells-in-Excel-using-SAS-9-4/m-p/416759#M102349</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-28T16:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Updating named ranged cells in Excel using SAS 9.4</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Updating-named-ranged-cells-in-Excel-using-SAS-9-4/m-p/417050#M102421</link>
      <description>&lt;P&gt;Can you use PROC IMPORT+noreplace + RANGE=' '&amp;nbsp; option to update ?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 13:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Updating-named-ranged-cells-in-Excel-using-SAS-9-4/m-p/417050#M102421</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-11-29T13:58:20Z</dc:date>
    </item>
  </channel>
</rss>

