<?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: Retrieve comments from an Excel file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-comments-from-an-Excel-file/m-p/539623#M148721</link>
    <description>Thanks for both suggestions, I did see these approaches when I had googled the problem, still hoping to find a SAS solution if possible before going the VBA route.</description>
    <pubDate>Fri, 01 Mar 2019 14:10:44 GMT</pubDate>
    <dc:creator>ghosh</dc:creator>
    <dc:date>2019-03-01T14:10:44Z</dc:date>
    <item>
      <title>Retrieve comments from an Excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-comments-from-an-Excel-file/m-p/539542#M148678</link>
      <description>&lt;P&gt;Is there a way to retrieve comment from Excel 2013 xlsx worksheets using SAS Enterprise Guide?&amp;nbsp; &amp;nbsp;Perhaps through xml?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to save the xlsx file in xml format I get an error message "&lt;SPAN&gt;cannot save XML data because the workbook does not contain any XML mappings&lt;/SPAN&gt;".&amp;nbsp; However, I am not sure how I would create mappings for comments since they occur in several columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 04:50:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieve-comments-from-an-Excel-file/m-p/539542#M148678</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2019-03-01T04:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve comments from an Excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-comments-from-an-Excel-file/m-p/539543#M148679</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78622"&gt;@ghosh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is there a way to retrieve comment from Excel 2013 xlsx worksheets using SAS Enterprise Guide?&amp;nbsp; &amp;nbsp;Perhaps through xml?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I try to save the xlsx file in xml format I get an error message "&lt;SPAN&gt;cannot save XML data because the workbook does not contain any XML mappings&lt;/SPAN&gt;".&amp;nbsp; However, I am not sure how I would create mappings for comments since they occur in several columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You could extract the xlsx file, search for the xml-file containing the comments (could be more than one) and read that xml-file using libname. I would do nearly anything to avoid such a programming task &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But there seems to be no other way to import the comments.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 05:59:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieve-comments-from-an-Excel-file/m-p/539543#M148679</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-03-01T05:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve comments from an Excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-comments-from-an-Excel-file/m-p/539551#M148685</link>
      <description>&lt;P&gt;I Googled "excel vba extract comments".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is one hit:&amp;nbsp;&amp;nbsp;&lt;A href="https://trumpexcel.com/get-list-of-comments-in-a-worksheet-excel/" target="_blank"&gt;https://trumpexcel.com/get-list-of-comments-in-a-worksheet-excel/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps this will get you what you need?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 07:25:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieve-comments-from-an-Excel-file/m-p/539551#M148685</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2019-03-01T07:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve comments from an Excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-comments-from-an-Excel-file/m-p/539552#M148686</link>
      <description>&lt;P&gt;Or Powershell?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/44811375/reading-comments-from-excel-file-with-powershell" target="_blank"&gt;https://stackoverflow.com/questions/44811375/reading-comments-from-excel-file-with-powershell&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll leave it to you to Google Python, etc &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 07:27:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieve-comments-from-an-Excel-file/m-p/539552#M148686</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2019-03-01T07:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve comments from an Excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-comments-from-an-Excel-file/m-p/539567#M148690</link>
      <description>&lt;P&gt;I think an Excel file is actually a zipped xml-file. Meaning that you can get all the stuff out of the file if you allocate it as a ZIP filename and read it as an XML or a text file. But I cannot help you with the details of where to find the comments.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could start by renaming/copying your .XLSX file to .ZIP, extract it to an XML-file, and open it in your favourite text editor (UltraEdit and Notepad++ come to mind as good possibilities).&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 09:29:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieve-comments-from-an-Excel-file/m-p/539567#M148690</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2019-03-01T09:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve comments from an Excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-comments-from-an-Excel-file/m-p/539622#M148720</link>
      <description>I did not understand how I could extract the xlsx until I read the message s_lassen below. However, thank you for the lead.</description>
      <pubDate>Fri, 01 Mar 2019 14:07:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieve-comments-from-an-Excel-file/m-p/539622#M148720</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2019-03-01T14:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve comments from an Excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-comments-from-an-Excel-file/m-p/539623#M148721</link>
      <description>Thanks for both suggestions, I did see these approaches when I had googled the problem, still hoping to find a SAS solution if possible before going the VBA route.</description>
      <pubDate>Fri, 01 Mar 2019 14:10:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieve-comments-from-an-Excel-file/m-p/539623#M148721</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2019-03-01T14:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve comments from an Excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-comments-from-an-Excel-file/m-p/539636#M148726</link>
      <description>&lt;P&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76464" target="_self"&gt;&lt;SPAN class="login-bold"&gt;s_lassen&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp; Thanks for this lead, I did not know that a xlsx file was actually a zip container.&amp;nbsp; When I renamed an xlsx file to zip and extracted all the xml files, I found comments&amp;nbsp;are stored in&amp;nbsp;several xml files.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I am trying to establish a link between the xml files and the worksheets and cell refs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 14:26:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieve-comments-from-an-Excel-file/m-p/539636#M148726</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2019-03-01T14:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve comments from an Excel file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-comments-from-an-Excel-file/m-p/539804#M148808</link>
      <description>This works quite well. Thanks for the link</description>
      <pubDate>Fri, 01 Mar 2019 23:25:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieve-comments-from-an-Excel-file/m-p/539804#M148808</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2019-03-01T23:25:40Z</dc:date>
    </item>
  </channel>
</rss>

