<?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: ODS EXCEL/PROC REPORT : change background color of first row in worksheet in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812332#M320505</link>
    <description>I am using SAS v7.11.&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your help !</description>
    <pubDate>Tue, 10 May 2022 09:06:21 GMT</pubDate>
    <dc:creator>elsfy</dc:creator>
    <dc:date>2022-05-10T09:06:21Z</dc:date>
    <item>
      <title>ODS EXCEL/PROC REPORT : change background color of first row in worksheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812105#M320399</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did a proc report and i want to export it to an excel worksheet. No problem here.&lt;/P&gt;&lt;P&gt;Yet, i wanted to display the output starting at the second row (A2) of my excel worksheet. No problem here cause i added the START_AT suboption in ODS EXCEL.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;ods excel file ="..." 
	options(sheet_interval='none', start_at='1,2') ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my proc report output starts at cell A2 in excel and the first row is empty. I want to change the background color of the entire first row into red to get something like this ;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="isgnr_0-1652090014477.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71227i74F8EF37ED2ACADC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="isgnr_0-1652090014477.png" alt="isgnr_0-1652090014477.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 09:54:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812105#M320399</guid>
      <dc:creator>elsfy</dc:creator>
      <dc:date>2022-05-09T09:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL/PROC REPORT : change background color of first row in worksheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812127#M320409</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title color=red bcolor=red 'xxxx';
ods excel file ="c:\temp\temp.xlsx" 
	options(sheet_interval='none' embedded_titles='yes' start_at='1,1' hidden_rows="2") ;
proc report data=sashelp.class nowd ;run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1652094659888.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71229i3B76BBBA03115CF8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1652094659888.png" alt="Ksharp_0-1652094659888.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 11:11:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812127#M320409</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-05-09T11:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL/PROC REPORT : change background color of first row in worksheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812174#M320426</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your code but it doesn't work exactly as i wanted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It stops at column Q while my report is from column A to column Z. Do you know why ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 14:21:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812174#M320426</guid>
      <dc:creator>elsfy</dc:creator>
      <dc:date>2022-05-09T14:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL/PROC REPORT : change background color of first row in worksheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812290#M320481</link>
      <description>&lt;P&gt;NO. I get the right result !&amp;nbsp; what version sas are you using ?&lt;/P&gt;
&lt;P&gt;You can contact support.sas.com&amp;nbsp; to confirm what is problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my code and snapshot .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.heart;
 array x{40} $ (40*'xxx');
run;

title color=red bcolor=red 'xxxx';
ods excel file ="c:\temp\temp.xlsx" 
	options(sheet_interval='none' embedded_titles='yes' start_at='1,1' hidden_rows="2") ;
proc report data=have(obs=10) nowd ;run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1652153833716.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71252i16530DB359B7775A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1652153833716.png" alt="Ksharp_0-1652153833716.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 03:39:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812290#M320481</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-05-10T03:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL/PROC REPORT : change background color of first row in worksheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812332#M320505</link>
      <description>I am using SAS v7.11.&lt;BR /&gt;&lt;BR /&gt;Thank you very much for your help !</description>
      <pubDate>Tue, 10 May 2022 09:06:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812332#M320505</guid>
      <dc:creator>elsfy</dc:creator>
      <dc:date>2022-05-10T09:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL/PROC REPORT : change background color of first row in worksheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812334#M320507</link>
      <description>&lt;P&gt;SAS version should like 9.4M4 , 9.4M5 ...&lt;/P&gt;
&lt;P&gt;Using the following to check sas version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%put &amp;amp;sysvlong4.;&lt;/PRE&gt;
&lt;P&gt;But since I got no problem , I think I can't help you . Buy a ticket to&amp;nbsp; support.sas.com&lt;/P&gt;
&lt;P&gt;Or&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp; could give you a hand .&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 09:16:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812334#M320507</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-05-10T09:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL/PROC REPORT : change background color of first row in worksheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812336#M320508</link>
      <description>Sorry, i didn't check correctly. It's the 9.04v.&lt;BR /&gt;No problem, thank you again</description>
      <pubDate>Tue, 10 May 2022 09:32:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812336#M320508</guid>
      <dc:creator>elsfy</dc:creator>
      <dc:date>2022-05-10T09:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL/PROC REPORT : change background color of first row in worksheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812378#M320530</link>
      <description>Hi:&lt;BR /&gt;  It sounds like you might be using SAS Enterprise Guide. If &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt; gets the correct result, but when you run the SAME code, you get a different result, that is an indication that you might benefit more from working with Tech Support.&lt;BR /&gt;Cynthia</description>
      <pubDate>Tue, 10 May 2022 12:32:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812378#M320530</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-05-10T12:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL/PROC REPORT : change background color of first row in worksheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812379#M320531</link>
      <description>Hi Cynthia, &lt;BR /&gt;&lt;BR /&gt;Yes i am working with SAS Enterprise Guide. So i guess there is no other way to do this with SAS EG? &lt;BR /&gt;Thanks.</description>
      <pubDate>Tue, 10 May 2022 12:34:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812379#M320531</guid>
      <dc:creator>elsfy</dc:creator>
      <dc:date>2022-05-10T12:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL/PROC REPORT : change background color of first row in worksheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812382#M320533</link>
      <description>Hi: &lt;BR /&gt;  It looks like KSHARP made some fake data. The problem as I understand it is that you can get the first row in the color you want, but Ksharp's example, shows the spanning header going past column Q and your header for your data stops at column Q. Someone is going to have to look at ALL of your code and ALL of our ODS statements and use your data to figure out whether the issue is with your code, your data or your version of SAS. It seems to me that Ksharp was testing with his fake data and you were testing with your data because I don't see anyplace where you posted data or where he posted data. So I can't comment on whether it is possible to do what you want with SAS EG because Enterprise Guide is only a front end interface to SAS. You should be able to do what Ksharp demonstrated assuming that your data is similar and your code is similar and your version of SAS is similar.&lt;BR /&gt;Cynthia</description>
      <pubDate>Tue, 10 May 2022 12:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812382#M320533</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2022-05-10T12:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL/PROC REPORT : change background color of first row in worksheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812405#M320544</link>
      <description>Is it possible to know how you would do that not only on the first row but the first 3 rows of the sheet ?&lt;BR /&gt;Or at least widen the first row ?</description>
      <pubDate>Tue, 10 May 2022 14:14:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812405#M320544</guid>
      <dc:creator>elsfy</dc:creator>
      <dc:date>2022-05-10T14:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL/PROC REPORT : change background color of first row in worksheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812526#M320604</link>
      <description>&lt;P&gt;Using two titles .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.heart;
 array x{40} $ (40*'xxx');
run;

title color=red bcolor=red 'xxxx';
title2 color=red bcolor=red 'xxxx';

ods excel file ="c:\temp\temp.xlsx" 
	options(sheet_interval='none' embedded_titles='yes' start_at='1,1' hidden_rows="3") ;
proc report data=have(obs=10) nowd ;run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1652236820171.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71291iE26F7C0B928C5183/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1652236820171.png" alt="Ksharp_0-1652236820171.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 02:40:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-EXCEL-PROC-REPORT-change-background-color-of-first-row-in/m-p/812526#M320604</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-05-11T02:40:35Z</dc:date>
    </item>
  </channel>
</rss>

