<?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 report shows highlighted cells in Results but not in Excel file in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-shows-highlighted-cells-in-Results-but-not-in-Excel/m-p/937976#M26687</link>
    <description>&lt;P&gt;Thanks for your responses.&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;--the code for the "Orange=Value Difference" is simply a title statement:&lt;/P&gt;&lt;P&gt;title8 justify=L bold height=9pt color="orange" F=Arial "Orange=Value Difference" ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;Here is the proc report code which shows after the macro variables are resolved:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;PROC REPORT DATA=WORK.DIFFALL2 LS=132 PS=60 SPLIT="/" CENTER ;&lt;/DIV&gt;&lt;DIV class=""&gt;COLUMN ( record SUBJECT LABNAM VISIT ACCSNNUM TESTNAME TRMTYP STUDYID SPEC ASSEDAT ORRES ORRESU TSTSTAT REASND CMNT );&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE record / DISPLAY FORMAT= OLDNEW55. WIDTH=55 SPACING=2 RIGHT "Record" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE SUBJECT / DISPLAY FORMAT= $11. WIDTH=11 SPACING=2 LEFT "SUBJECT" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE LABNAM / DISPLAY FORMAT= $7. WIDTH=7 SPACING=2 LEFT "LABNAM" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE VISIT / DISPLAY FORMAT= $7. WIDTH=7 SPACING=2 LEFT "VISIT" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE ACCSNNUM / DISPLAY FORMAT= $7. WIDTH=7 SPACING=2 LEFT "ACCSNNUM" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE TESTNAME / DISPLAY FORMAT= $3. WIDTH=3 SPACING=2 LEFT "TESTNAME" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE TRMTYP / DISPLAY FORMAT= $1. WIDTH=1 SPACING=2 LEFT "TRMTYP" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE STUDYID / DISPLAY FORMAT= $14. WIDTH=14 SPACING=2 LEFT "STUDYID" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE SPEC / DISPLAY FORMAT= $4. WIDTH=4 SPACING=2 LEFT "SPEC" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE ASSEDAT / DISPLAY FORMAT= $9. WIDTH=9 SPACING=2 LEFT "ASSEDAT" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE ORRES / DISPLAY FORMAT= $2. WIDTH=2 SPACING=2 LEFT "ORRES" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE ORRESU / DISPLAY FORMAT= $1. WIDTH=1 SPACING=2 LEFT "ORRESU" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE TSTSTAT / DISPLAY FORMAT= $2. WIDTH=2 SPACING=2 LEFT "TSTSTAT" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE REASND / DISPLAY FORMAT= $1. WIDTH=1 SPACING=2 LEFT "REASND" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE CMNT / DISPLAY FORMAT= $1. WIDTH=1 SPACING=2 LEFT "CMNT" ;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;COMPUTE TRMTYP / CHAR LENGTH=1 ;&lt;/DIV&gt;&lt;DIV class=""&gt;if record = 2 and TRMTYP ne lag1(TRMTYP) then call define("TRMTYP", "style", "style={background=orange}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 3 then call define(_row_, "style", "style={background=lightblue}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 4 then call define(_row_, "style", "style={background=lightgreen}");&lt;/DIV&gt;&lt;DIV class=""&gt;ENDCOMP;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;COMPUTE STUDYID / CHAR LENGTH=14 ;&lt;/DIV&gt;&lt;DIV class=""&gt;if record = 2 and studyid ne lag1(studyid) then call define("studyid", "style", "style={background=orange}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 3 then call define(_row_, "style", "style={background=lightblue}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 4 then call define(_row_, "style", "style={background=lightgreen}");&lt;/DIV&gt;&lt;DIV class=""&gt;ENDCOMP;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;COMPUTE SPEC / CHAR LENGTH=4 ;&lt;/DIV&gt;&lt;DIV class=""&gt;if record = 2 and spec ne lag1(spec) then call define("spec", "style", "style={background=orange}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 3 then call define(_row_, "style", "style={background=lightblue}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 4 then call define(_row_, "style", "style={background=lightgreen}");&lt;/DIV&gt;&lt;DIV class=""&gt;ENDCOMP;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;COMPUTE ASSEDAT / CHAR LENGTH=9 ;&lt;/DIV&gt;&lt;DIV class=""&gt;if record = 2 and assedat ne lag1(assedat) then call define("assedat", "style", "style={background=orange}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 3 then call define(_row_, "style", "style={background=lightblue}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 4 then call define(_row_, "style", "style={background=lightgreen}");&lt;/DIV&gt;&lt;DIV class=""&gt;ENDCOMP;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;COMPUTE ORRES / CHAR LENGTH=2 ;&lt;/DIV&gt;&lt;DIV class=""&gt;if record = 2 and orres ne lag1(orres) then call define("orres", "style", "style={background=orange}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 3 then call define(_row_, "style", "style={background=lightblue}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 4 then call define(_row_, "style", "style={background=lightgreen}");&lt;/DIV&gt;&lt;DIV class=""&gt;ENDCOMP;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;COMPUTE ORRESU / CHAR LENGTH=1 ;&lt;/DIV&gt;&lt;DIV class=""&gt;if record = 2 and orresu ne lag1(orresu) then call define("orresu", "style", "style={background=orange}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 3 then call define(_row_, "style", "style={background=lightblue}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 4 then call define(_row_, "style", "style={background=lightgreen}");&lt;/DIV&gt;&lt;DIV class=""&gt;ENDCOMP;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;COMPUTE TSTSTAT / CHAR LENGTH=2 ;&lt;/DIV&gt;&lt;DIV class=""&gt;if record = 2 and tststat ne lag1(tststat) then call define("tststat", "style", "style={background=orange}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 3 then call define(_row_, "style", "style={background=lightblue}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 4 then call define(_row_, "style", "style={background=lightgreen}");&lt;/DIV&gt;&lt;DIV class=""&gt;ENDCOMP;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;COMPUTE REASND / CHAR LENGTH=1 ;&lt;/DIV&gt;&lt;DIV class=""&gt;if record = 2 and reasnd ne lag1(reasnd) then call define("reasnd", "style", "style={background=orange}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 3 then call define(_row_, "style", "style={background=lightblue}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 4 then call define(_row_, "style", "style={background=lightgreen}");&lt;/DIV&gt;&lt;DIV class=""&gt;ENDCOMP;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;COMPUTE CMNT / CHAR LENGTH=1 ;&lt;/DIV&gt;&lt;DIV class=""&gt;if record = 2 and cmnt ne lag1(cmnt) then call define("cmnt", "style", "style={background=orange}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 3 then call define(_row_, "style", "style={background=lightblue}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 4 then call define(_row_, "style", "style={background=lightgreen}");&lt;/DIV&gt;&lt;DIV class=""&gt;ENDCOMP;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;RUN;&lt;/DIV&gt;</description>
    <pubDate>Thu, 01 Aug 2024 15:38:41 GMT</pubDate>
    <dc:creator>brentphillippi</dc:creator>
    <dc:date>2024-08-01T15:38:41Z</dc:date>
    <item>
      <title>Proc report shows highlighted cells in Results but not in Excel file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-shows-highlighted-cells-in-Results-but-not-in-Excel/m-p/937827#M26680</link>
      <description>&lt;P&gt;Using SAS Studio 9.4. In the Results window the orange cell highlighting shows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brentphillippi_0-1722458586982.png" style="width: 1114px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98891i66952B5F75FE3A53/image-dimensions/1114x716?v=v2" width="1114" height="716" role="button" title="brentphillippi_0-1722458586982.png" alt="brentphillippi_0-1722458586982.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but in the Excel file the orange highlighted cells disappear:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="brentphillippi_0-1722458866010.png" style="width: 1216px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98892i6B0DA199DA48D103/image-dimensions/1216x735?v=v2" width="1216" height="735" role="button" title="brentphillippi_0-1722458866010.png" alt="brentphillippi_0-1722458866010.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the ods and proc print statement:&lt;/P&gt;&lt;P&gt;ods excel&lt;BR /&gt;&lt;BR /&gt;file="\\sasprod01\prisonersbay\clin_data\&amp;amp;prod.\&amp;amp;prot.\&amp;amp;outpath.\&amp;amp;prot._Discrepancy_Checks_&amp;amp;thedate._&amp;amp;thetime..xlsx"&lt;BR /&gt;style=Sapphire options(autofilter="ALL" sheet_name=""&amp;nbsp;embedded_titles="yes"&amp;nbsp;embed_titles_once="yes"&amp;nbsp;);&lt;/P&gt;&lt;P&gt;ods excel options(sheet_name="EXDCC_010");&lt;/P&gt;&lt;P&gt;proc report data=diffall2 list ;&lt;BR /&gt;column record &amp;amp;keyvars &amp;amp;comparevars;&lt;BR /&gt;define record/ display "Record";&lt;BR /&gt;&lt;BR /&gt;%do i=1 %to &amp;amp;numcomp;&lt;BR /&gt;compute %scan(&amp;amp;comparevars,&amp;amp;i,' ');&lt;BR /&gt;%let temp=%scan(&amp;amp;comparevars,&amp;amp;i,' ');&lt;BR /&gt;if record=2 and %scan(&amp;amp;comparevars,&amp;amp;i,' ') ne lag1( %scan(&amp;amp;comparevars,&amp;amp;i,' ')) then do;&lt;BR /&gt;call define ("&amp;amp;temp","style","style={background=orange}");&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;else if record=3 then call define (_row_,"style","style={background=lightblue}");&lt;BR /&gt;else if record=4 then call define (_row_,"style","style={background=lightgreen}");&lt;BR /&gt;endcomp;&lt;BR /&gt;%end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 20:55:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-shows-highlighted-cells-in-Results-but-not-in-Excel/m-p/937827#M26680</guid>
      <dc:creator>brentphillippi</dc:creator>
      <dc:date>2024-07-31T20:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report shows highlighted cells in Results but not in Excel file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-shows-highlighted-cells-in-Results-but-not-in-Excel/m-p/937836#M26681</link>
      <description>&lt;P&gt;Easiest to test would be&amp;nbsp; a different color instead of orange, like Red, in the Proc Report call define code. Just in case your Excel doesn't like orange in that context.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no way anyone can attempt to duplicate your result without data or the definitions of way too many macro variables. Perhaps running the code with options MPRINT turned on would show something when this resolves that would give a hint.&lt;/P&gt;
&lt;PRE&gt;if record=2 and %scan(&amp;amp;comparevars,&amp;amp;i,' ') ne lag1( %scan(&amp;amp;comparevars,&amp;amp;i,' ')) then do;
call define ("&amp;amp;temp","style","style={background=orange}");
end;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might also help to show the code that successfully uses orange in the "Orange=Value Difference"&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 22:07:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-shows-highlighted-cells-in-Results-but-not-in-Excel/m-p/937836#M26681</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-07-31T22:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report shows highlighted cells in Results but not in Excel file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-shows-highlighted-cells-in-Results-but-not-in-Excel/m-p/937920#M26683</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; It's not the color. I suspect it is something else. In a quick test program, using the color name "orange" worked OK:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1722514709581.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98929i09B24DDA99489B92/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1722514709581.png" alt="Cynthia_sas_0-1722514709581.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Note that since I took all the default usage definitions since age has a default usage of sum, the specification for age in the COMPUTE block needs to be "age.sum" and not just the variable name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; See what happens when I do not use the "var.stat" form of the reference in the CALL DEFINE:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_1-1722514968680.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/98930i7A923A1B9C4B2D9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_1-1722514968680.png" alt="Cynthia_sas_1-1722514968680.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The age column is NOT changed to orange AND there are error messages in the log.&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 12:23:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-shows-highlighted-cells-in-Results-but-not-in-Excel/m-p/937920#M26683</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2024-08-01T12:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report shows highlighted cells in Results but not in Excel file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-shows-highlighted-cells-in-Results-but-not-in-Excel/m-p/937976#M26687</link>
      <description>&lt;P&gt;Thanks for your responses.&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;--the code for the "Orange=Value Difference" is simply a title statement:&lt;/P&gt;&lt;P&gt;title8 justify=L bold height=9pt color="orange" F=Arial "Orange=Value Difference" ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;Here is the proc report code which shows after the macro variables are resolved:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;PROC REPORT DATA=WORK.DIFFALL2 LS=132 PS=60 SPLIT="/" CENTER ;&lt;/DIV&gt;&lt;DIV class=""&gt;COLUMN ( record SUBJECT LABNAM VISIT ACCSNNUM TESTNAME TRMTYP STUDYID SPEC ASSEDAT ORRES ORRESU TSTSTAT REASND CMNT );&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE record / DISPLAY FORMAT= OLDNEW55. WIDTH=55 SPACING=2 RIGHT "Record" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE SUBJECT / DISPLAY FORMAT= $11. WIDTH=11 SPACING=2 LEFT "SUBJECT" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE LABNAM / DISPLAY FORMAT= $7. WIDTH=7 SPACING=2 LEFT "LABNAM" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE VISIT / DISPLAY FORMAT= $7. WIDTH=7 SPACING=2 LEFT "VISIT" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE ACCSNNUM / DISPLAY FORMAT= $7. WIDTH=7 SPACING=2 LEFT "ACCSNNUM" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE TESTNAME / DISPLAY FORMAT= $3. WIDTH=3 SPACING=2 LEFT "TESTNAME" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE TRMTYP / DISPLAY FORMAT= $1. WIDTH=1 SPACING=2 LEFT "TRMTYP" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE STUDYID / DISPLAY FORMAT= $14. WIDTH=14 SPACING=2 LEFT "STUDYID" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE SPEC / DISPLAY FORMAT= $4. WIDTH=4 SPACING=2 LEFT "SPEC" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE ASSEDAT / DISPLAY FORMAT= $9. WIDTH=9 SPACING=2 LEFT "ASSEDAT" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE ORRES / DISPLAY FORMAT= $2. WIDTH=2 SPACING=2 LEFT "ORRES" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE ORRESU / DISPLAY FORMAT= $1. WIDTH=1 SPACING=2 LEFT "ORRESU" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE TSTSTAT / DISPLAY FORMAT= $2. WIDTH=2 SPACING=2 LEFT "TSTSTAT" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE REASND / DISPLAY FORMAT= $1. WIDTH=1 SPACING=2 LEFT "REASND" ;&lt;/DIV&gt;&lt;DIV class=""&gt;DEFINE CMNT / DISPLAY FORMAT= $1. WIDTH=1 SPACING=2 LEFT "CMNT" ;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;COMPUTE TRMTYP / CHAR LENGTH=1 ;&lt;/DIV&gt;&lt;DIV class=""&gt;if record = 2 and TRMTYP ne lag1(TRMTYP) then call define("TRMTYP", "style", "style={background=orange}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 3 then call define(_row_, "style", "style={background=lightblue}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 4 then call define(_row_, "style", "style={background=lightgreen}");&lt;/DIV&gt;&lt;DIV class=""&gt;ENDCOMP;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;COMPUTE STUDYID / CHAR LENGTH=14 ;&lt;/DIV&gt;&lt;DIV class=""&gt;if record = 2 and studyid ne lag1(studyid) then call define("studyid", "style", "style={background=orange}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 3 then call define(_row_, "style", "style={background=lightblue}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 4 then call define(_row_, "style", "style={background=lightgreen}");&lt;/DIV&gt;&lt;DIV class=""&gt;ENDCOMP;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;COMPUTE SPEC / CHAR LENGTH=4 ;&lt;/DIV&gt;&lt;DIV class=""&gt;if record = 2 and spec ne lag1(spec) then call define("spec", "style", "style={background=orange}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 3 then call define(_row_, "style", "style={background=lightblue}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 4 then call define(_row_, "style", "style={background=lightgreen}");&lt;/DIV&gt;&lt;DIV class=""&gt;ENDCOMP;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;COMPUTE ASSEDAT / CHAR LENGTH=9 ;&lt;/DIV&gt;&lt;DIV class=""&gt;if record = 2 and assedat ne lag1(assedat) then call define("assedat", "style", "style={background=orange}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 3 then call define(_row_, "style", "style={background=lightblue}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 4 then call define(_row_, "style", "style={background=lightgreen}");&lt;/DIV&gt;&lt;DIV class=""&gt;ENDCOMP;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;COMPUTE ORRES / CHAR LENGTH=2 ;&lt;/DIV&gt;&lt;DIV class=""&gt;if record = 2 and orres ne lag1(orres) then call define("orres", "style", "style={background=orange}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 3 then call define(_row_, "style", "style={background=lightblue}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 4 then call define(_row_, "style", "style={background=lightgreen}");&lt;/DIV&gt;&lt;DIV class=""&gt;ENDCOMP;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;COMPUTE ORRESU / CHAR LENGTH=1 ;&lt;/DIV&gt;&lt;DIV class=""&gt;if record = 2 and orresu ne lag1(orresu) then call define("orresu", "style", "style={background=orange}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 3 then call define(_row_, "style", "style={background=lightblue}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 4 then call define(_row_, "style", "style={background=lightgreen}");&lt;/DIV&gt;&lt;DIV class=""&gt;ENDCOMP;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;COMPUTE TSTSTAT / CHAR LENGTH=2 ;&lt;/DIV&gt;&lt;DIV class=""&gt;if record = 2 and tststat ne lag1(tststat) then call define("tststat", "style", "style={background=orange}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 3 then call define(_row_, "style", "style={background=lightblue}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 4 then call define(_row_, "style", "style={background=lightgreen}");&lt;/DIV&gt;&lt;DIV class=""&gt;ENDCOMP;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;COMPUTE REASND / CHAR LENGTH=1 ;&lt;/DIV&gt;&lt;DIV class=""&gt;if record = 2 and reasnd ne lag1(reasnd) then call define("reasnd", "style", "style={background=orange}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 3 then call define(_row_, "style", "style={background=lightblue}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 4 then call define(_row_, "style", "style={background=lightgreen}");&lt;/DIV&gt;&lt;DIV class=""&gt;ENDCOMP;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;COMPUTE CMNT / CHAR LENGTH=1 ;&lt;/DIV&gt;&lt;DIV class=""&gt;if record = 2 and cmnt ne lag1(cmnt) then call define("cmnt", "style", "style={background=orange}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 3 then call define(_row_, "style", "style={background=lightblue}");&lt;/DIV&gt;&lt;DIV class=""&gt;else if record = 4 then call define(_row_, "style", "style={background=lightgreen}");&lt;/DIV&gt;&lt;DIV class=""&gt;ENDCOMP;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;RUN;&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Aug 2024 15:38:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-shows-highlighted-cells-in-Results-but-not-in-Excel/m-p/937976#M26687</guid>
      <dc:creator>brentphillippi</dc:creator>
      <dc:date>2024-08-01T15:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report shows highlighted cells in Results but not in Excel file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-shows-highlighted-cells-in-Results-but-not-in-Excel/m-p/937977#M26688</link>
      <description>&lt;P&gt;Just a note, there are no errors or warnings in the log.&amp;nbsp; If I change the call define to _row_ instead of variable name in each compute statement, then the row highlighting works and does show in the Excel file...but for some reason, cell highlighting work in the SAS output but gets lost when creating the Excel file.&amp;nbsp; :~(&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 15:41:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-shows-highlighted-cells-in-Results-but-not-in-Excel/m-p/937977#M26688</guid>
      <dc:creator>brentphillippi</dc:creator>
      <dc:date>2024-08-01T15:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report shows highlighted cells in Results but not in Excel file</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-shows-highlighted-cells-in-Results-but-not-in-Excel/m-p/938222#M26696</link>
      <description>&lt;P&gt;In a data step before the proc report, I created a variable which indicated if there was a change in the data compared to the previous row then used that new variable in the logic in the compute block of the proc report and now the cell highlighting carries over to the Excel file.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 12:19:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-shows-highlighted-cells-in-Results-but-not-in-Excel/m-p/938222#M26696</guid>
      <dc:creator>brentphillippi</dc:creator>
      <dc:date>2024-08-05T12:19:05Z</dc:date>
    </item>
  </channel>
</rss>

