<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Disabling Macros on Startup</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2004/12/01/disabling-macros-on-startup/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2004/12/01/disabling-macros-on-startup/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 23:42:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Jorge</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/01/disabling-macros-on-startup/#comment-42705</link>
		<dc:creator>Jorge</dc:creator>
		<pubDate>Thu, 10 Dec 2009 01:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=894#comment-42705</guid>
		<description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I need your help, i need to disable an userform from other workbook, the userform is shown with a Private Sub in &quot;Thisworbook&quot;:&lt;/p&gt;
&lt;p&gt;Private Sub Workbook_Open()&lt;/p&gt;
&lt;p&gt;My macro stops when useform appear, so i&#039;ve to close it for continue the procedure...&lt;/p&gt;
&lt;p&gt;I hope that you can help me.&lt;/p&gt;
&lt;p&gt;Ooooo, another thing, can i to copy modules with macros?&lt;/p&gt;
&lt;p&gt;Tks...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>I need your help, i need to disable an userform from other workbook, the userform is shown with a Private Sub in &#8220;Thisworbook&#8221;:</p>
<p>Private Sub Workbook_Open()</p>
<p>My macro stops when useform appear, so i&#8217;ve to close it for continue the procedure&#8230;</p>
<p>I hope that you can help me.</p>
<p>Ooooo, another thing, can i to copy modules with macros?</p>
<p>Tks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/01/disabling-macros-on-startup/#comment-38158</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Tue, 24 Feb 2009 15:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=894#comment-38158</guid>
		<description>&lt;p&gt;Whoops,&lt;/p&gt;
&lt;p&gt;Forgot to mention in that code snippet I posted above. . .&lt;/p&gt;
&lt;p&gt;1/ pSheetname is not the name as it appears on the sheet tab in the Excel Window. Instead, it is the VBA name shown in the Project Explorer Window in the VBA screen, which you can change in the Properties Window, also in the VBA screen.&lt;/p&gt;
&lt;p&gt;2/ If you use this at work, there may be a firewall that will disallow this code. The worst I experienced was a firewall deleting all the modules in a Workbook when I tried to save it. If you send an Excel file containing code that uses the reference to &quot;Microsoft Visual Basic For Applications Extensibility 5.3? as an attachment to an email, the attachment may be stripped from the email be Outlook. &lt;/p&gt;
&lt;p&gt;It varies, but happily, 2007 gives you a way to say the code is trustworthy. Go to the Excel Options dialog box, by clicking on Office - Excel Options - Trust Center - Trust Center Settings, and under &quot;Developer Macro Settings&quot;, tick the checkbox labelled &quot;Trust access to the VBA project object model&quot;.&lt;/p&gt;
&lt;p&gt;Good luck.&lt;/p&gt;
&lt;p&gt;Nick.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Whoops,</p>
<p>Forgot to mention in that code snippet I posted above. . .</p>
<p>1/ pSheetname is not the name as it appears on the sheet tab in the Excel Window. Instead, it is the VBA name shown in the Project Explorer Window in the VBA screen, which you can change in the Properties Window, also in the VBA screen.</p>
<p>2/ If you use this at work, there may be a firewall that will disallow this code. The worst I experienced was a firewall deleting all the modules in a Workbook when I tried to save it. If you send an Excel file containing code that uses the reference to &#8220;Microsoft Visual Basic For Applications Extensibility 5.3? as an attachment to an email, the attachment may be stripped from the email be Outlook. </p>
<p>It varies, but happily, 2007 gives you a way to say the code is trustworthy. Go to the Excel Options dialog box, by clicking on Office &#8211; Excel Options &#8211; Trust Center &#8211; Trust Center Settings, and under &#8220;Developer Macro Settings&#8221;, tick the checkbox labelled &#8220;Trust access to the VBA project object model&#8221;.</p>
<p>Good luck.</p>
<p>Nick.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/01/disabling-macros-on-startup/#comment-38152</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Tue, 24 Feb 2009 12:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=894#comment-38152</guid>
		<description>&lt;p&gt;Try this. &lt;/p&gt;
&lt;p&gt;First, make a reference to &quot;Microsoft Visual Basic For Applications Extensibility 5.3?&lt;/p&gt;
&lt;p&gt;Then put the following sub into a standard module:&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container vb default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;vb codecolorer&quot;&gt;&lt;span class=&quot;co1&quot;&gt;&#039;------------------------------------------------&lt;br&gt;
&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;Public&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt; RemoveVBA(pSheetname &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;)&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;With&lt;/span&gt; Application.VBE.ActiveVBProject&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;With&lt;/span&gt; .VBComponents(pSheetname).CodeModule&lt;br&gt;
&#160; &#160; &#160; &#160; &#160; &#160; .DeleteLines 1, .CountOfLines&lt;br&gt;
&#160; &#160; &#160; &#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;With&lt;/span&gt;&lt;br&gt;
&#160; &#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;With&lt;/span&gt;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Sub&lt;/span&gt;&lt;br&gt;
&#039;------------------------------------------------&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Then, after the code that copies the sheet, call the above sub, passing the sheet name of the copy that you want to remove the code from.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Try this. </p>
<p>First, make a reference to &#8220;Microsoft Visual Basic For Applications Extensibility 5.3?</p>
<p>Then put the following sub into a standard module:</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="co1">&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
</span><span class="kw1">Public</span> <span class="kw1">Sub</span> RemoveVBA(pSheetname <span class="kw1">As</span> <span class="kw1">String</span>)<br />
&nbsp; &nbsp; <span class="kw1">With</span> Application.VBE.ActiveVBProject<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">With</span> .VBComponents(pSheetname).CodeModule<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .DeleteLines 1, .CountOfLines<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">End</span> <span class="kw1">With</span><br />
&nbsp; &nbsp; <span class="kw1">End</span> <span class="kw1">With</span><br />
<span class="kw1">End</span> <span class="kw1">Sub</span><br />
&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</div>
</div>
<p>Then, after the code that copies the sheet, call the above sub, passing the sheet name of the copy that you want to remove the code from.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/01/disabling-macros-on-startup/#comment-34882</link>
		<dc:creator>Joe</dc:creator>
		<pubDate>Thu, 25 Sep 2008 00:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=894#comment-34882</guid>
		<description>&lt;p&gt;i have made a sheet which contain a set of macros...&lt;br&gt;
Now i need a separte copy of sheet with No Macros ..&lt;br&gt;
Please suggest me what to do....It will be so appreciable..&lt;/p&gt;
&lt;p&gt;Thanks&lt;br&gt;
Regards&lt;br&gt;
Joe&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>i have made a sheet which contain a set of macros&#8230;<br />
Now i need a separte copy of sheet with No Macros ..<br />
Please suggest me what to do&#8230;.It will be so appreciable..</p>
<p>Thanks<br />
Regards<br />
Joe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/01/disabling-macros-on-startup/#comment-34860</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Mon, 22 Sep 2008 22:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=894#comment-34860</guid>
		<description>&lt;p&gt;Phil, hopefully you have an answer by now, but if not I solved my similar problem by first opening up a different workbook, changing the macro security level to medium(tools/options/security-tab/macro security button),now open the corrupted workbook with macros disabled, now view the code (alt + F11)and look for your problem.  Mine was that I had two macros with identical names (I copied and pasted code and forgot to change the name) and it somehow caused the file to corrupt when it was last closed.  &lt;/p&gt;
&lt;p&gt;Good luck&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Phil, hopefully you have an answer by now, but if not I solved my similar problem by first opening up a different workbook, changing the macro security level to medium(tools/options/security-tab/macro security button),now open the corrupted workbook with macros disabled, now view the code (alt + F11)and look for your problem.  Mine was that I had two macros with identical names (I copied and pasted code and forgot to change the name) and it somehow caused the file to corrupt when it was last closed.  </p>
<p>Good luck</p>
<p>Ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/01/disabling-macros-on-startup/#comment-34797</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Mon, 15 Sep 2008 20:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=894#comment-34797</guid>
		<description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I have a wookbook that freezes upon opening.  I believe its to do with a line of code I entered (wrongly, probably!) I would like to know how to delete the code without actually opening the workbook, or disable the code upon startup (shift key doesn&#039;t work),&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;PHIL&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>I have a wookbook that freezes upon opening.  I believe its to do with a line of code I entered (wrongly, probably!) I would like to know how to delete the code without actually opening the workbook, or disable the code upon startup (shift key doesn&#8217;t work),</p>
<p>Cheers</p>
<p>PHIL</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maaron</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/01/disabling-macros-on-startup/#comment-31871</link>
		<dc:creator>Maaron</dc:creator>
		<pubDate>Tue, 15 Apr 2008 15:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=894#comment-31871</guid>
		<description>&lt;p&gt;I&#039;m using automation Excel, i created small program for just reading desired cells,&lt;br&gt;
everyhting works fine, until i use excel file with macro, which is password protected&lt;br&gt;
and when i tried to open this excel file with my program, error message appears:&lt;br&gt;
&#039;Compile error in hidden module: xxx_mod&#039;&lt;br&gt;
and next message:&lt;br&gt;
&#039;The xxx.dll is not present....&#039;&lt;/p&gt;
&lt;p&gt;(i suppose Excel tries to initiliaze macro and looks for dll)&lt;br&gt;
but i set HIGH security level for running macros, so i expect, macro should not run&lt;/p&gt;
&lt;p&gt;anyway, my program stops on this error and not continue until user action, what is not my expectation&lt;/p&gt;
&lt;p&gt;is there any way how to prevent displaying any error message during opening file (which requires user action)&lt;br&gt;
or how i can open such file without &#039;Compile error&#039;?&lt;br&gt;
(if i open it manually, it opens without any error - if i set high level for macro)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;m using automation Excel, i created small program for just reading desired cells,<br />
everyhting works fine, until i use excel file with macro, which is password protected<br />
and when i tried to open this excel file with my program, error message appears:<br />
&#8216;Compile error in hidden module: xxx_mod&#8217;<br />
and next message:<br />
&#8216;The xxx.dll is not present&#8230;.&#8217;</p>
<p>(i suppose Excel tries to initiliaze macro and looks for dll)<br />
but i set HIGH security level for running macros, so i expect, macro should not run</p>
<p>anyway, my program stops on this error and not continue until user action, what is not my expectation</p>
<p>is there any way how to prevent displaying any error message during opening file (which requires user action)<br />
or how i can open such file without &#8216;Compile error&#8217;?<br />
(if i open it manually, it opens without any error &#8211; if i set high level for macro)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jkpieterse</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/01/disabling-macros-on-startup/#comment-27317</link>
		<dc:creator>jkpieterse</dc:creator>
		<pubDate>Wed, 12 Sep 2007 17:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=894#comment-27317</guid>
		<description>&lt;p&gt;Just filed a bug with MSFT on Excel 2007: holding the shift key does NOT prevent the auromacros from running!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Just filed a bug with MSFT on Excel 2007: holding the shift key does NOT prevent the auromacros from running!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Alexander</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/01/disabling-macros-on-startup/#comment-27315</link>
		<dc:creator>Mike Alexander</dc:creator>
		<pubDate>Wed, 12 Sep 2007 17:30:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=894#comment-27315</guid>
		<description>&lt;p&gt;Rahul, &lt;/p&gt;
&lt;p&gt;Check out this video that demonstrates how to force users to enable macros&lt;br&gt;
&lt;a href=&quot;http://www.datapigtechnologies.com/flashfiles/forcemacros.html&quot; rel=&quot;nofollow&quot;&gt;http://www.datapigtechnologies.com/flashfiles/forcemacros.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To see a real file in action, download Andrew&#039;s Mastermind game.  It forces you to enable macros or it won&#039;t open.&lt;br&gt;
&lt;a href=&quot;http://www.andrewsexceltips.com/Mastermind.zip&quot; rel=&quot;nofollow&quot;&gt;http://www.andrewsexceltips.com/Mastermind.zip&lt;/a&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Rahul, </p>
<p>Check out this video that demonstrates how to force users to enable macros<br />
<a href="http://www.datapigtechnologies.com/flashfiles/forcemacros.html" rel="nofollow">http://www.datapigtechnologies.com/flashfiles/forcemacros.html</a></p>
<p>To see a real file in action, download Andrew&#8217;s Mastermind game.  It forces you to enable macros or it won&#8217;t open.<br />
<a href="http://www.andrewsexceltips.com/Mastermind.zip" rel="nofollow">http://www.andrewsexceltips.com/Mastermind.zip</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tushar Mehta</title>
		<link>http://www.dailydoseofexcel.com/archives/2004/12/01/disabling-macros-on-startup/#comment-27311</link>
		<dc:creator>Tushar Mehta</dc:creator>
		<pubDate>Wed, 12 Sep 2007 14:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=894#comment-27311</guid>
		<description>&lt;p&gt;Rahul: If code execution is disabled, how do you expect code to detect if it is disabled?  But, more important, I doubt that there is anyone, in or outside of Microsoft, who would consider Excel as a secure tool for anything.  Well, maybe the versions support IRM but I don&#039;t know enough about that.  Other than that, If you have confidential data don&#039;t put them in Excel.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Rahul: If code execution is disabled, how do you expect code to detect if it is disabled?  But, more important, I doubt that there is anyone, in or outside of Microsoft, who would consider Excel as a secure tool for anything.  Well, maybe the versions support IRM but I don&#8217;t know enough about that.  Other than that, If you have confidential data don&#8217;t put them in Excel.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

