<?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 How to Change the Text Color in a Footnote, Using ODS Excel Options (Print_Footer) in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Change-the-Text-Color-in-a-Footnote-Using-ODS-Excel/m-p/761194#M25232</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've spent a while working on the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ODS EXCEL FILE = "/filepath/filename.xlsx";
ODS EXCEL OPTIONS
	(PRINT_FOOTER = "&amp;amp;amp;LForename Surname&amp;amp;#10;Position&amp;amp;amp;C&amp;amp;amp;BDocument Name&amp;amp;#10;Document Subname&amp;amp;amp;RTime&amp;amp;#10;Date");&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code works fine, and it creates this footer at the bottom of my Excel document:&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-center" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62521i14058538C2A2854D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is exactly what I want, EXCEPT that I want the text for the middle footnotes (i.e. Document Name and Document Subname) to be in red, not black. How do I change this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried searching for a solution on Google. The only potential option which I've found is to insert &amp;amp;Color=RED, right before 'Document Name'. However, when I try it, it doesn't work. The &amp;amp;C is read as a separate command to centrally justify that footnote, and I'm left with a footnote that looks like:&amp;nbsp;&lt;STRONG&gt;OLOR=REDDocument Name&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Aug 2021 16:14:07 GMT</pubDate>
    <dc:creator>George12</dc:creator>
    <dc:date>2021-08-12T16:14:07Z</dc:date>
    <item>
      <title>How to Change the Text Color in a Footnote, Using ODS Excel Options (Print_Footer)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Change-the-Text-Color-in-a-Footnote-Using-ODS-Excel/m-p/761194#M25232</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've spent a while working on the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ODS EXCEL FILE = "/filepath/filename.xlsx";
ODS EXCEL OPTIONS
	(PRINT_FOOTER = "&amp;amp;amp;LForename Surname&amp;amp;#10;Position&amp;amp;amp;C&amp;amp;amp;BDocument Name&amp;amp;#10;Document Subname&amp;amp;amp;RTime&amp;amp;#10;Date");&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code works fine, and it creates this footer at the bottom of my Excel document:&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-center" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62521i14058538C2A2854D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is exactly what I want, EXCEPT that I want the text for the middle footnotes (i.e. Document Name and Document Subname) to be in red, not black. How do I change this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried searching for a solution on Google. The only potential option which I've found is to insert &amp;amp;Color=RED, right before 'Document Name'. However, when I try it, it doesn't work. The &amp;amp;C is read as a separate command to centrally justify that footnote, and I'm left with a footnote that looks like:&amp;nbsp;&lt;STRONG&gt;OLOR=REDDocument Name&lt;/STRONG&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 16:14:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Change-the-Text-Color-in-a-Footnote-Using-ODS-Excel/m-p/761194#M25232</guid>
      <dc:creator>George12</dc:creator>
      <dc:date>2021-08-12T16:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to Change the Text Color in a Footnote, Using ODS Excel Options (Print_Footer)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Change-the-Text-Color-in-a-Footnote-Using-ODS-Excel/m-p/761518#M25240</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/372278"&gt;@George12&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask which SAS product you are using? I am using SAS 9.4 M6.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS, in just about every context I can think of, &amp;amp;C would invoke the macro language processor.&amp;nbsp; What if you were to try just "color" without the preceding ampersand?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS	Excel	CLOSE;

OPTION	Device=ACTXIMG;
TITLE	"Test Report";
FOOTNOTE	color=red "Red " color=green " Green " color=blue "Blue";
ODS	Excel
	OPTIONS(
		Frozen_Headers="1"
		Frozen_RowHeaders="1"
		Sheet_Name="Test"
		Embedded_Titles="YES"
		Embedded_Footnotes="YES"
		Embed_Footnotes_Once="YES"
		Gridlines="YES"
		);

PROC	PRINT	DATA=SASHELP.Cars (OBS=15);
RUN;

ODS	Excel CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The color in the footnotes appears to match what I coded; see below. Note that I just used a regular footnote rather than PRINT_FOOTER.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&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="jimbarbour_0-1628896901531.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62568i52E0743D67D3AC19/image-size/large?v=v2&amp;amp;px=999" role="button" title="jimbarbour_0-1628896901531.png" alt="jimbarbour_0-1628896901531.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 23:26:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Change-the-Text-Color-in-a-Footnote-Using-ODS-Excel/m-p/761518#M25240</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-08-13T23:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Change the Text Color in a Footnote, Using ODS Excel Options (Print_Footer)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Change-the-Text-Color-in-a-Footnote-Using-ODS-Excel/m-p/761825#M25243</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37107"&gt;@jimbarbour&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response. I am using SAS 8.3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do really appreciate your taking the time to respond, but I'm afraid that&amp;nbsp;it doesn't help to solve my specific problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using your code. Changing the text colour only seems to work if the footer is embedded, and I don't want an embedded footer. I also can't see how to use that code format to create two lines for seperate left, central, and right footnotes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The &amp;amp;color is a VBA code, taken from here: &lt;A href="https://docs.microsoft.com/en-us/previous-versions/office/developer/office-2007/bb225426(v=office.12" target="_blank"&gt;https://docs.microsoft.com/en-us/previous-versions/office/developer/office-2007/bb225426(v=office.12&lt;/A&gt;). Note that the other codes here (e.g. &amp;amp;L, &amp;amp;C, &amp;amp;R, &amp;amp;B, etc.) seem to work fine, but not &amp;amp;color.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried adding color=red - without the ampersand, as you suggested -&amp;nbsp;into my existing code, but that's just read as text (i.e. so the footnote results in &lt;STRONG&gt;color=redDocument Name&lt;/STRONG&gt;).&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 14:52:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Change-the-Text-Color-in-a-Footnote-Using-ODS-Excel/m-p/761825#M25243</guid>
      <dc:creator>George12</dc:creator>
      <dc:date>2021-08-16T14:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Change the Text Color in a Footnote, Using ODS Excel Options (Print_Footer)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Change-the-Text-Color-in-a-Footnote-Using-ODS-Excel/m-p/761850#M25244</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/372278"&gt;@George12&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well, shoot, but I sort of thought "that can't be the solution; it's too easy."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/372278"&gt;@George12&lt;/a&gt;&amp;nbsp;wrote:
&lt;P&gt;The &amp;amp;color is a VBA code, taken from here: &lt;A href="https://docs.microsoft.com/en-us/previous-versions/office/developer/office-2007/bb225426(v=office.12" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/previous-versions/office/developer/office-2007/bb225426(v=office.12&lt;/A&gt;). Note that the other codes here (e.g. &amp;amp;L, &amp;amp;C, &amp;amp;R, &amp;amp;B, etc.) seem to work fine, but not &amp;amp;color.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Well, then it seems that it's a Microsoft VBA issue, yes?&amp;nbsp; I wonder if there are any VBA forums where someone may have encountered this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is as though the VBA interpreter isn't able to properly distinguish between &amp;amp;c and &amp;amp;color.&amp;nbsp; It looks like VBA gets to "&amp;amp;c", interprets it as a command to center, and doesn't bother looking at the "olor".&amp;nbsp; If a look at VBA forums doesn't unearth a resolution, I wonder if there's a way to instruct VBA to handle "&amp;amp;color" as a whole rather than as "&amp;amp;c" and plain text "olor".&amp;nbsp; In SAS, I might do something like %NRSTR(&amp;amp;color) or %BQUOTE(&amp;amp;color).&amp;nbsp; I wonder if there's a way to do that in VBA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 15:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Change-the-Text-Color-in-a-Footnote-Using-ODS-Excel/m-p/761850#M25244</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-08-16T15:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to Change the Text Color in a Footnote, Using ODS Excel Options (Print_Footer)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Change-the-Text-Color-in-a-Footnote-Using-ODS-Excel/m-p/761874#M25245</link>
      <description>&lt;P&gt;Hi again &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37107"&gt;@jimbarbour&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've worked it out! Thanks for pointing me in the right direction.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following your suggestion, I searched on Google for specifically VBA &amp;amp;color solutions. Apparently, you need to use &amp;amp;K (who&amp;nbsp;knew?)&amp;nbsp;and then the hexidecimal color value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, the final code looks this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ODS EXCEL FILE = "/filepath/filename.xlsx";
ODS EXCEL OPTIONS
	(PRINT_FOOTER = "&amp;amp;amp;LForename Surname&amp;amp;#10;Position&amp;amp;amp;C&amp;amp;amp;B&lt;STRONG&gt;&lt;U&gt;&amp;amp;amp;KFF0000&lt;/U&gt;&lt;/STRONG&gt;Document Name&amp;amp;#10;Document Subname&amp;amp;amp;RTime&amp;amp;#10;Date");&lt;/PRE&gt;&lt;P&gt;Works perfectly now. &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 16:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Change-the-Text-Color-in-a-Footnote-Using-ODS-Excel/m-p/761874#M25245</guid>
      <dc:creator>George12</dc:creator>
      <dc:date>2021-08-16T16:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to Change the Text Color in a Footnote, Using ODS Excel Options (Print_Footer)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Change-the-Text-Color-in-a-Footnote-Using-ODS-Excel/m-p/761883#M25246</link>
      <description>&lt;P&gt;Excellent!&amp;nbsp; Sometimes all we need is a different perspective or approach to shake loose the solution.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2021 18:21:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Change-the-Text-Color-in-a-Footnote-Using-ODS-Excel/m-p/761883#M25246</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-08-16T18:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Change the Text Color in a Footnote, Using ODS Excel Options (Print_Footer)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Change-the-Text-Color-in-a-Footnote-Using-ODS-Excel/m-p/843998#M26042</link>
      <description>&lt;P&gt;Click the "Home" tab. Click the small "Down Arrow" in the bottom right corner of the Font section of the ribbon. Click on the "Superscript" box to insert a check mark, then click “OK.” The footnote takes on the traditional, small and slightly higher appearance compared to normal text. This is how you can add &lt;A href="https://www.basicexceltutorial.com/how-to-add-a-footnote-in-excel/" target="_self"&gt;footnote in excel&lt;/A&gt; in seconds.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 10:15:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-Change-the-Text-Color-in-a-Footnote-Using-ODS-Excel/m-p/843998#M26042</guid>
      <dc:creator>Sofya982</dc:creator>
      <dc:date>2022-11-13T10:15:04Z</dc:date>
    </item>
  </channel>
</rss>

