<?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 ODS Excel - want hyperlinks to change color in Excel after followed in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-Excel-want-hyperlinks-to-change-color-in-Excel-after/m-p/877792#M346769</link>
    <description>&lt;P&gt;With ODS Excel (SAS version 9.4),&amp;nbsp;I'm able to successfully create hyperlinks to individual subject tabs within my Excel spreadsheet with the following code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;    proc report data = subjects split = "`";
        columns subject;&lt;BR /&gt;&lt;/CODE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;CODE class=""&gt;        define subject / "Subject" style(column) = {textdecoration = underline foreground = blue};
        compute subject;
            urlstring = "#'" || strip(subject) || "'!A1";
            call define (_col_, 'url', urlstring);
        endcomp;
    run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The hyperlinks are even blue underlined by using the style options for the SUBJECT column. Is there a way to format these hyperlinks in the Excel file so that they change color after they have been followed, similar to what Excel would do if the Hyperlink style was applied?&lt;/P&gt;&lt;P&gt;Here's what my current Excel file looks like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="slpinnnell_1-1685134234838.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/84368i43E5A6EC0327E478/image-size/medium?v=v2&amp;amp;px=400" role="button" title="slpinnnell_1-1685134234838.png" alt="slpinnnell_1-1685134234838.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is what I'd like hyperlinks to look like after they've been followed (first subject) :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="slpinnnell_3-1685134359303.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/84370i96D14D2D05302248/image-size/medium?v=v2&amp;amp;px=400" role="button" title="slpinnnell_3-1685134359303.png" alt="slpinnnell_3-1685134359303.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, 26 May 2023 20:55:09 GMT</pubDate>
    <dc:creator>slpinnnell</dc:creator>
    <dc:date>2023-05-26T20:55:09Z</dc:date>
    <item>
      <title>ODS Excel - want hyperlinks to change color in Excel after followed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-Excel-want-hyperlinks-to-change-color-in-Excel-after/m-p/877792#M346769</link>
      <description>&lt;P&gt;With ODS Excel (SAS version 9.4),&amp;nbsp;I'm able to successfully create hyperlinks to individual subject tabs within my Excel spreadsheet with the following code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;    proc report data = subjects split = "`";
        columns subject;&lt;BR /&gt;&lt;/CODE&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;CODE class=""&gt;        define subject / "Subject" style(column) = {textdecoration = underline foreground = blue};
        compute subject;
            urlstring = "#'" || strip(subject) || "'!A1";
            call define (_col_, 'url', urlstring);
        endcomp;
    run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The hyperlinks are even blue underlined by using the style options for the SUBJECT column. Is there a way to format these hyperlinks in the Excel file so that they change color after they have been followed, similar to what Excel would do if the Hyperlink style was applied?&lt;/P&gt;&lt;P&gt;Here's what my current Excel file looks like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="slpinnnell_1-1685134234838.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/84368i43E5A6EC0327E478/image-size/medium?v=v2&amp;amp;px=400" role="button" title="slpinnnell_1-1685134234838.png" alt="slpinnnell_1-1685134234838.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is what I'd like hyperlinks to look like after they've been followed (first subject) :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="slpinnnell_3-1685134359303.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/84370i96D14D2D05302248/image-size/medium?v=v2&amp;amp;px=400" role="button" title="slpinnnell_3-1685134359303.png" alt="slpinnnell_3-1685134359303.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, 26 May 2023 20:55:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-Excel-want-hyperlinks-to-change-color-in-Excel-after/m-p/877792#M346769</guid>
      <dc:creator>slpinnnell</dc:creator>
      <dc:date>2023-05-26T20:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel - want hyperlinks to change color in Excel after followed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-Excel-want-hyperlinks-to-change-color-in-Excel-after/m-p/877847#M346804</link>
      <description>&lt;P&gt;Maybe&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp; knew it !&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2023 10:21:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-Excel-want-hyperlinks-to-change-color-in-Excel-after/m-p/877847#M346804</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-05-27T10:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Excel - want hyperlinks to change color in Excel after followed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-Excel-want-hyperlinks-to-change-color-in-Excel-after/m-p/877935#M346851</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ODS HTML supports 2 style attributes: ACTIVELINKCOLOR and VISITEDLINKCOLOR, but they only sort of work in HTML output and don't work in other destinations. I doubt they will work in ODS EXCEL, since OSD is creating is a proprietary MIcrosoft XML format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This YouTube video &lt;A href="https://www.youtube.com/watch?v=qufMuSNkLYM" target="_blank"&gt;https://www.youtube.com/watch?v=qufMuSNkLYM&lt;/A&gt; seems to indicate that changing hyperlink colors in Excel involves changing a Microsoft theme, as shown in this screen snippet from the video:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Cynthia_sas_0-1685288016215.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/84395i8B52CEDF019A6F9C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Cynthia_sas_0-1685288016215.png" alt="Cynthia_sas_0-1685288016215.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I don't know whether a Microsoft theme can be implemented or translated to an ODS style template. And IF some of a theme can be implemented in an ODS style template (a big IF), I don't know whether hyperlink colors is one of the changeable attributes. ODS documentation still lists ACTIVELINKCOLOR and VISITEDLINKCOLOR as being ODS HTML style attributes. So, I think that these would be questions better addressed with SAS Tech Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 May 2023 15:42:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-Excel-want-hyperlinks-to-change-color-in-Excel-after/m-p/877935#M346851</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2023-05-28T15:42:59Z</dc:date>
    </item>
  </channel>
</rss>

