<?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: Bookmarks for Output Objects in ODS Excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Bookmarks-for-Output-Objects-in-ODS-Excel/m-p/680460#M205657</link>
    <description>Hi:&lt;BR /&gt;  I think the closest you can get is the Table of Contents that ODS EXCEL generates. I am not sure that you have the ability to populate the "Go to" window in Excel. However, this would be a question for Tech Support. I believe that the ANCHOR= option really was only designed to work with the original ODS PDF and ODS HTML -- that feature was part of ODS for those 2 destinations and I do not believe it was retrofitted or revisited when ODS EXCEL came on the scene. Again, another question for Tech Support.&lt;BR /&gt;Cynthia</description>
    <pubDate>Mon, 31 Aug 2020 15:43:12 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2020-08-31T15:43:12Z</dc:date>
    <item>
      <title>Bookmarks for Output Objects in ODS Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bookmarks-for-Output-Objects-in-ODS-Excel/m-p/679870#M205345</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to figure out how to include Excel bookmarks in my output file using ODS Excel.&amp;nbsp; Here is some example code:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file = 'C:\Temp\Buy.xlsx';
	data _null_;
		set Sashelp.Buy end = done;
		if _n_ = 1 then
			do;
				array A[*]
						_all_
						_temporary_;
				declare odsout B();
				B.table_start();
					B.head_start();
						B.row_start();
							B.format_cell(text: 'Date');
							B.format_cell(text: 'Amount');
						B.row_end();
					B.head_end();
					B.body_start();
			end;
						B.row_start();
						do i = 1 to 2;
							B.format_cell(data: A[i]);
						end;
						B.row_end();
		if done then
			do;
					B.body_end();
				B.table_end();
			end;
	run;
	proc odstext;
		p 'Another output object';
	run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you go to Home &amp;gt; Find &amp;amp; Select &amp;gt; Go To, you'll see the following:&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="Go_To.png" style="width: 283px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48748i14A375CD3A05CBC1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Go_To.png" alt="Go_To.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need each output object to be listed in this window.&amp;nbsp; The names aren't super important, although if there is a way to name them manually that would be nice.&amp;nbsp; It would also be nice to be able to bookmark the header and body of the Report Writing Interface separately, but that's also less important.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SAS 9.4M5 on Windows 10.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 18:43:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bookmarks-for-Output-Objects-in-ODS-Excel/m-p/679870#M205345</guid>
      <dc:creator>Palmer_D</dc:creator>
      <dc:date>2020-08-27T18:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Bookmarks for Output Objects in ODS Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bookmarks-for-Output-Objects-in-ODS-Excel/m-p/679938#M205383</link>
      <description>&lt;P&gt;Have you tried&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel anchor='TABLE1';
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 04:30:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bookmarks-for-Output-Objects-in-ODS-Excel/m-p/679938#M205383</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-08-28T04:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Bookmarks for Output Objects in ODS Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bookmarks-for-Output-Objects-in-ODS-Excel/m-p/680033#M205432</link>
      <description>&lt;P&gt;Hi Chris,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I've tried the anchor option.&amp;nbsp; I forgot to mention in my original post, but the two closest things I've tried are:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Specifying the option anchor = 'Table1' (along with the dom option to display the html structure in the log).&amp;nbsp; This shows me how Table1 replaces IDX, the default value of ID= in the section tag.&amp;nbsp; The "Go To" window, however, is unchanged.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Specifying the suboption (contents = 'on').&amp;nbsp; This creates another sheet with links to the output objects on the main sheet, but "Go To" remains empty for both sheets.&amp;nbsp; The fact that the Table of Contents sheet correctly identifies the cells in which I'm interested indicates to me that SAS knows how to communicate this information to Excel - I'm just not sure how to get it into the "Go To" window specifically.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 14:29:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bookmarks-for-Output-Objects-in-ODS-Excel/m-p/680033#M205432</guid>
      <dc:creator>Palmer_D</dc:creator>
      <dc:date>2020-08-28T14:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Bookmarks for Output Objects in ODS Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bookmarks-for-Output-Objects-in-ODS-Excel/m-p/680349#M205582</link>
      <description>&lt;P&gt;My version is so old that the anchor syntax is unsupported, so I can't help much more. Maybe&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;knows?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Aug 2020 02:36:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bookmarks-for-Output-Objects-in-ODS-Excel/m-p/680349#M205582</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-08-31T02:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Bookmarks for Output Objects in ODS Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bookmarks-for-Output-Objects-in-ODS-Excel/m-p/680460#M205657</link>
      <description>Hi:&lt;BR /&gt;  I think the closest you can get is the Table of Contents that ODS EXCEL generates. I am not sure that you have the ability to populate the "Go to" window in Excel. However, this would be a question for Tech Support. I believe that the ANCHOR= option really was only designed to work with the original ODS PDF and ODS HTML -- that feature was part of ODS for those 2 destinations and I do not believe it was retrofitted or revisited when ODS EXCEL came on the scene. Again, another question for Tech Support.&lt;BR /&gt;Cynthia</description>
      <pubDate>Mon, 31 Aug 2020 15:43:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bookmarks-for-Output-Objects-in-ODS-Excel/m-p/680460#M205657</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-08-31T15:43:12Z</dc:date>
    </item>
  </channel>
</rss>

