Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Excel VBA

Posted on 2004-08-30
1
479 Views
Last Modified: 2012-06-27
How do you open an excel workbook that has an On_Open() event that you don't want to execute?
0
Comment
Question by:Nobletucky2004
1 Comment
 
LVL 24

Accepted Solution

by:
R_Rajesh earned 50 total points
ID: 11933061
if you are opening it manually then you can either set the macro security to high or hold down the shift key while opening the file.

if you are doing it through code then then set the application's AutomationSecurity property to msoAutomationSecurityForceDisable

Application.AutomationSecurity = msoAutomationSecurityForceDisable
Workbooks.Open "c:\MyFile.xls"

Rajesh
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction It seems that at least a couple of times per month, I answer a question that requires automating Outlook from another Microsoft Office application, usually (although not always) to send one or more email messages.  For example: …
No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question