<?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: Reading a macro enabled Excel (XLSM) file. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-a-macro-enabled-Excel-XLSM-file/m-p/226197#M267848</link>
    <description>&lt;P&gt;It might be that the .xlsm format is only supported on Windows, as a VBA engine is needed to run the macros. And since even pre-ODF macros (Excel 4.0) are supported, I suspect that the .xlsm format may contain all kinds of (insert suitable 4-letter expletive here).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, I don't see ANY reasson why a simple transfer of data needs macros. There seems to be a &lt;U&gt;serious&lt;/U&gt; process design flaw here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Sep 2015 06:50:03 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2015-09-18T06:50:03Z</dc:date>
    <item>
      <title>Reading a macro enabled Excel (XLSM) file.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-a-macro-enabled-Excel-XLSM-file/m-p/225898#M267843</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to import a Macro enabled Excel file (xlsm).&lt;/P&gt;&lt;P&gt;I am using following code to do this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC IMPORT DATAFILE='/home/Excelfile.xlsm'  
DBMS=xlsx replace
OUT=work.test ;
SHEET="Sheet1";
GETNAMES=YES;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But it shows following error:&lt;BR /&gt;&lt;FONT color="#800000"&gt;&lt;STRONG&gt;ERROR: XLSX file does not exist -&amp;gt; /home//Excelfile.xlsm.xlsx&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand why its adding extra "/" and "xlsx" around the file name.&lt;/P&gt;&lt;P&gt;This code works fine for a "xlsx: file format.&lt;/P&gt;&lt;P&gt;I am using SAS 9.3 and EG 5.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me in reading a xlsm file format?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help will be much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2015 17:29:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-a-macro-enabled-Excel-XLSM-file/m-p/225898#M267843</guid>
      <dc:creator>Dreamer</dc:creator>
      <dc:date>2015-09-16T17:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Reading a macro enabled Excel (XLSM) file.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-a-macro-enabled-Excel-XLSM-file/m-p/225940#M267844</link>
      <description>&lt;P&gt;Have you tried simply changing the line that is currently: dbms=xlxs&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;dbms=excel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2015 20:36:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-a-macro-enabled-Excel-XLSM-file/m-p/225940#M267844</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2015-09-16T20:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reading a macro enabled Excel (XLSM) file.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-a-macro-enabled-Excel-XLSM-file/m-p/225992#M267845</link>
      <description>&lt;P&gt;What keeps you from saving the data in a .xlsx, or even better, a .csv?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 06:05:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-a-macro-enabled-Excel-XLSM-file/m-p/225992#M267845</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-09-17T06:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reading a macro enabled Excel (XLSM) file.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-a-macro-enabled-Excel-XLSM-file/m-p/226093#M267846</link>
      <description>&lt;P&gt;Yes, but also didn't work.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 16:54:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-a-macro-enabled-Excel-XLSM-file/m-p/226093#M267846</guid>
      <dc:creator>Dreamer</dc:creator>
      <dc:date>2015-09-17T16:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Reading a macro enabled Excel (XLSM) file.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-a-macro-enabled-Excel-XLSM-file/m-p/226095#M267847</link>
      <description>&lt;P&gt;This file is delivered from a different source and I have only read access to it.&lt;/P&gt;&lt;P&gt;I can write VBA to save this file as XLSX to some different location and then point SAS to read it from there.&lt;/P&gt;&lt;P&gt;But before doint that first I want confirm that there is no way I can read a XLSM file through SAS.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 16:57:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-a-macro-enabled-Excel-XLSM-file/m-p/226095#M267847</guid>
      <dc:creator>Dreamer</dc:creator>
      <dc:date>2015-09-17T16:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reading a macro enabled Excel (XLSM) file.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-a-macro-enabled-Excel-XLSM-file/m-p/226197#M267848</link>
      <description>&lt;P&gt;It might be that the .xlsm format is only supported on Windows, as a VBA engine is needed to run the macros. And since even pre-ODF macros (Excel 4.0) are supported, I suspect that the .xlsm format may contain all kinds of (insert suitable 4-letter expletive here).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, I don't see ANY reasson why a simple transfer of data needs macros. There seems to be a &lt;U&gt;serious&lt;/U&gt; process design flaw here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 06:50:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-a-macro-enabled-Excel-XLSM-file/m-p/226197#M267848</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-09-18T06:50:03Z</dc:date>
    </item>
  </channel>
</rss>

