<?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: Avoiding the &amp;quot;This Excel sheet contains macros&amp;quot;-prompt in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Avoiding-the-quot-This-Excel-sheet-contains-macros-quot-prompt/m-p/105706#M22001</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a tough one.&amp;nbsp; I think that message is present (or suppressed) based on a registry setting in Windows.&amp;nbsp; If the users have a certain amount of administrative access to their own computers, you could use any one of the registry editing programs to set up a small executable to modify the registry.&amp;nbsp; If not, your network admins would have to do it with their tools.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2012 13:22:20 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2012-08-29T13:22:20Z</dc:date>
    <item>
      <title>Avoiding the "This Excel sheet contains macros"-prompt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoiding-the-quot-This-Excel-sheet-contains-macros-quot-prompt/m-p/105705#M22000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the following code, I am opening Excel, opening a specific file and running a macro in that file. The only problem is that between opening the specific file and running the macro it contains, Excel pops up with the prompt that asks me if I want to run the file with or without macros, and I have to manually choose "With macros" before my SAS program continues. Can I get SAS to either ignore this prompt or to automatically choose "With macros"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: By the way, I would like my code to be able to run on other people's computers as well, so the solution where I turn off the prompt in Excel is a last way out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START OF CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x ' "C:\Program Files\Microsoft Office\OFFICE11\excel.exe" ';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename EXCEL DDE 'EXCEL|SYSTEM';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; x = sleep(3);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file excel;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put '[open("L:\sasdata\Test\rhk\skrbest15\rapporteringsmakro.xls")]';&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put '[RUN("rapporteringsmakro.xls!Rapportering")]';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Rasmus Hedegaard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 09:50:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoiding-the-quot-This-Excel-sheet-contains-macros-quot-prompt/m-p/105705#M22000</guid>
      <dc:creator>Hedegaard</dc:creator>
      <dc:date>2012-08-28T09:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Avoiding the "This Excel sheet contains macros"-prompt</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Avoiding-the-quot-This-Excel-sheet-contains-macros-quot-prompt/m-p/105706#M22001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a tough one.&amp;nbsp; I think that message is present (or suppressed) based on a registry setting in Windows.&amp;nbsp; If the users have a certain amount of administrative access to their own computers, you could use any one of the registry editing programs to set up a small executable to modify the registry.&amp;nbsp; If not, your network admins would have to do it with their tools.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Aug 2012 13:22:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Avoiding-the-quot-This-Excel-sheet-contains-macros-quot-prompt/m-p/105706#M22001</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-08-29T13:22:20Z</dc:date>
    </item>
  </channel>
</rss>

