<?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: Output into specific cells in an existing excel spreadsheet in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185856#M47191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arthur.T,&lt;/P&gt;&lt;P&gt;Could I insert something into a sepecial place of RTF(i.e. Microsoft Word) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Nov 2014 13:07:33 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2014-11-27T13:07:33Z</dc:date>
    <item>
      <title>Output into specific cells in an existing excel spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185846#M47181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to output data into specific cells in a pre-existing excel spreadsheet. The only method I know of that can achieve this is by defining the excelfile through a libname statement, but since I use a 64 bit version of SAS (EG 6.4) and 32 bit version of MS-office (2007) using the libname statement results in the error statement: "ERROR: Connect: Class not registered". So... does anyone know of another method to achieve this (or alternatively a way to use the libname statement across different bit versions...)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code that I tried to run is: libname xls excel 'S:\1 Alle\JHH\Diverse\Legemappe\template.xls';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be greatly appreciated &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bedste regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jacob Hornnes &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 14:43:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185846#M47181</guid>
      <dc:creator>JacobH</dc:creator>
      <dc:date>2014-11-25T14:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Output into specific cells in an existing excel spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185847#M47182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Am afraid not.&amp;nbsp; The fact that you are using .xsl indicates the file is in proprietary binary format, hence not even easily readable by other applications. &lt;/P&gt;&lt;P&gt;I always recommend people not to use Excel for &amp;lt;insert task&amp;gt; as its not for that.&lt;/P&gt;&lt;P&gt;I suppose one option you have is looking at this from the other end.&amp;nbsp; I.e. export your data from SAS to CSV or Excel, just basic export.&amp;nbsp; Then with your other Excel file, write a small bit of VBA code which opens the exported data, and copies the data to the specific cell.&lt;/P&gt;&lt;P&gt;Other than that I am afraid your hammering a screw in with a matchstick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 14:49:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185847#M47182</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-11-25T14:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Output into specific cells in an existing excel spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185848#M47183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jacob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is one way that might provide the solution you're seeking:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export" title="http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export"&gt;A Poor/Rich SAS Users Proc Export - sasCommunity&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I noticed that your workbook is on an S drive, thus I presume that you're running a server version of SAS. I've updated the above mentioned macro to be able to run in server environments, but haven't yet posted the new code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if the macro works for you or, if it doesn't, let me know and I'll finalize and post the updated code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Art&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 15:23:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185848#M47183</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-11-25T15:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Output into specific cells in an existing excel spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185849#M47184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;p.s. In the event that you decide to try the macro I suggested in my last post, I just updated the documentation and SAS code that you will find at &lt;A href="http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export" style="font-size: 10pt; line-height: 1.5em;" title="http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export"&gt;A Poor/Rich SAS Users Proc Export - sasCommunity&lt;/A&gt;.&amp;nbsp; The macro now includes a parameter that will allow it to run in server environments where one's local clipboard can't be accessed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 16:44:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185849#M47184</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-11-25T16:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Output into specific cells in an existing excel spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185850#M47185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Arthur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you sir, are nothing short of a hero! When I run the program, however, I get the following error: &lt;EM&gt;ERROR: Undetermined I/O failure.&lt;/EM&gt; And then the program crashes and the data is not added to the spreadsheet. I have tried to figure out what is wrong, but so far without any succes. Is it a problem that you are familiar with in regards to the macro?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have inserted the log as well as my macro call below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bedste regards, and a huge thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jacob Hornnes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %exportxl(data=a, outfile=C:\tjek.xlsx, type=M, range=C15);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: There were 1 observations read from the data set WORK.A.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.T_E_M_P has 1 observations and 3 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: There were 1 observations read from the data set WORK.T_E_M_P.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.T_E_M_P has 1 observations and 3 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: The file CODE2INC is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Filename=C:\Users\cj1g\AppData\Local\Temp\SEG3760\SAS Temporary Files\_TD2012_CNU1010ZZ6_\#LN00057,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RECFM=V,LRECL=32767,File Size (bytes)=0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Last Modified=26. november 2014 14:26:26,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Create Time=26. november 2014 14:26:26&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: 6 records were written to the file CODE2INC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The minimum record length was 15.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The maximum record length was 56.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The SAS System&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10:02 Wednesday, November 26, 2014&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Undetermined I/O failure.&lt;/P&gt;&lt;P&gt;NOTE: There were 1 observations read from the data set WORK.A.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 13:34:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185850#M47185</guid>
      <dc:creator>JacobH</dc:creator>
      <dc:date>2014-11-26T13:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Output into specific cells in an existing excel spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185851#M47186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can install or check if you have installed PC File Server. This allows you to connect with the 32 bit version of excel. The code changes as either:&lt;/P&gt;&lt;P&gt;Why is the file .xls if it's Office 2007, shouldn't it be xlxx?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;libname xls excelcs 'S:\1 Alle\JHH\Diverse\Legemappe\template.xls';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;OR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;libname xls pcfiles path= 'S:\1 Alle\JHH\Diverse\Legemappe\template.xls';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/downloads/browse.htm?cat=63" title="http://support.sas.com/downloads/browse.htm?cat=63"&gt;SAS Support Downloads Browse&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 13:45:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185851#M47186</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-11-26T13:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Output into specific cells in an existing excel spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185852#M47187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jacob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It could be any one of a number of reasons. However, given that your output file is &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.7272720336914px; background-color: #ffffff;"&gt;C:\tjek.xlsx and that you included the type=M parameter, my first guess is that the file doesn't exist. I know that on my computer I can't save files directly to the c drive, only to directories under c. Did &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.7272720336914px; background-color: #ffffff;"&gt;C:\tjek.xlsx exist before you ran the macro?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, out of curiosity, is SAS on your computer, or are you running a server version. And, if it is the latter, does it know what your c: drive is?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your original description, though, I'd think that you'd want to use the type=N, template and templatesheet parameters. The macro lets you specify an Excel template when creating or modifying a workbook or worksheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Art&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 14:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185852#M47187</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-11-26T14:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Output into specific cells in an existing excel spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185853#M47188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Arthur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had created the file beforehand, no problem, and previous to that I tried with an other location. SAS is installed on the computer itself so it cannot be a server issue. I created a template and tried again with the following code as you suggested and I got the same error message. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %exportxl(data=a, outfile=S:\1 Alle\JHH\Diverse\ny_mappe.xlsx, type=N, range=C5,template=C:\Users\cj1g\AppData\Roaming\Microsoft\Skabeloner\template.xltx,&lt;/P&gt;&lt;P&gt;templatesheet=template);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any idea what could be wrong I will greatly appreciate any help, in any case thanks so much for your help already! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bedste regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jacob &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 14:56:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185853#M47188</guid>
      <dc:creator>JacobH</dc:creator>
      <dc:date>2014-11-26T14:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: Output into specific cells in an existing excel spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185854#M47189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jacob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So we don't use up too much of the forum's bandwidth, write me off line at &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:art@analystfinder.com"&gt;art@analystfinder.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please attach your log and provide as much info as you can. I have a couple of hours to spare this morning and would like to find out why you aren't able to run the macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Art&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 15:03:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185854#M47189</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-11-26T15:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Output into specific cells in an existing excel spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185855#M47190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried running it in Base SAS (9.4) and that solved the issue with the Error message. Then my colleague pointed out that I had not specified the sheet in the templatesheet macro variabel (doh!), and now it works like a charm. Thank you so much for your patience as well as a great macro that I plan on using a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jacob Hornnes &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 09:29:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185855#M47190</guid>
      <dc:creator>JacobH</dc:creator>
      <dc:date>2014-11-27T09:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Output into specific cells in an existing excel spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185856#M47191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Arthur.T,&lt;/P&gt;&lt;P&gt;Could I insert something into a sepecial place of RTF(i.e. Microsoft Word) ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 13:07:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185856#M47191</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-11-27T13:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Output into specific cells in an existing excel spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185857#M47192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="645292" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;: Not the way the macro is currently written. You could, of course, use the macro as a template for creating another macro that opened Word rather than Excel, and Word commands and tags rather than Excel cells and actions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 14:24:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185857#M47192</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-11-27T14:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Output into specific cells in an existing excel spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185858#M47193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isn't it slightly easier for RTF?&amp;nbsp; For Excel files in the OP, he had an existing ZIP (XLSX) which needed to have a value updated.&amp;nbsp; The macro opens Excel and uses the functions in there - please correct me if I misunderstand Arthur.&amp;nbsp; For RTF, this is just a plain text file with some additional tags so you can directly manipulate the file in any way you like, so long as you know RTF syntax.&amp;nbsp; Point being is RTF is before Word so why use Word to edit it, whereas the Excel sheet is already in Excel format (not a flat tagset output), so is harder (but not impossible if you know the Open Office format) to manipulate without going through Excel frontend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if we just had a ZIP file reader in SAS, we could go in an directly modify Office docs...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 14:58:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185858#M47193</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-11-27T14:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Output into specific cells in an existing excel spreadsheet</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185859#M47194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="814511" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;: Probably, but I've never worked with RTF files or open office. I was only stating that the macro isn't currently designed to do that, but could probably be modified to accomplish such tasks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 15:24:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Output-into-specific-cells-in-an-existing-excel-spreadsheet/m-p/185859#M47194</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-11-27T15:24:19Z</dc:date>
    </item>
  </channel>
</rss>

