<?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 Determining current directory of excel file using Excel SAS Add-in in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Determining-current-directory-of-excel-file-using-Excel-SAS-Add/m-p/586311#M2398</link>
    <description>&lt;P&gt;I just discovered that there is a SAS Add-in in Microsoft Excel. I just want to know if there is&amp;nbsp; a way to know the current directory of the excel file using the code that will be run in SAS Add-in inside excel. The excel is connected through SAS EG, server based. I have tried to use&amp;nbsp; the following code but the result points to the location:&lt;/P&gt;&lt;P&gt;D:\SASConfig94\Lev1\SASApp94\&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname here '' access=readonly;

data _null_;
path = pathname('here');
call symput('xpath', trim(left(path)));
%put &amp;amp;xpath;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Sep 2019 06:42:08 GMT</pubDate>
    <dc:creator>saskupo</dc:creator>
    <dc:date>2019-09-05T06:42:08Z</dc:date>
    <item>
      <title>Determining current directory of excel file using Excel SAS Add-in</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Determining-current-directory-of-excel-file-using-Excel-SAS-Add/m-p/586311#M2398</link>
      <description>&lt;P&gt;I just discovered that there is a SAS Add-in in Microsoft Excel. I just want to know if there is&amp;nbsp; a way to know the current directory of the excel file using the code that will be run in SAS Add-in inside excel. The excel is connected through SAS EG, server based. I have tried to use&amp;nbsp; the following code but the result points to the location:&lt;/P&gt;&lt;P&gt;D:\SASConfig94\Lev1\SASApp94\&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname here '' access=readonly;

data _null_;
path = pathname('here');
call symput('xpath', trim(left(path)));
%put &amp;amp;xpath;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2019 06:42:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Determining-current-directory-of-excel-file-using-Excel-SAS-Add/m-p/586311#M2398</guid>
      <dc:creator>saskupo</dc:creator>
      <dc:date>2019-09-05T06:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: Determining current directory of excel file using Excel SAS Add-in</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Determining-current-directory-of-excel-file-using-Excel-SAS-Add/m-p/598212#M2441</link>
      <description>=LEFT(CELL("filename", A1), FIND("[", CELL("filename", A1))-1)</description>
      <pubDate>Mon, 21 Oct 2019 18:51:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Determining-current-directory-of-excel-file-using-Excel-SAS-Add/m-p/598212#M2441</guid>
      <dc:creator>tomrvincent</dc:creator>
      <dc:date>2019-10-21T18:51:02Z</dc:date>
    </item>
  </channel>
</rss>

