Solved

EXCEL VISUAL BASIC

Posted on 2007-03-23
1
140 Views
Last Modified: 2010-04-30
Hello,

Could someone provide me with code on how to open an excel file without the message asking whether I want to enable macros appearing? Please note that I want to keep macro security as a medium level.

Thanks.
0
Comment
Question by:f19l
[X]
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
1 Comment
 
LVL 81

Accepted Solution

by:
zorvek (Kevin Jones) earned 500 total points
ID: 18780851
You can open the workbook inquiry only:

   ExcelApplication.Workbooks.Open Filename:=FilePathName, UpdateLinks:=0, ReadOnly:=True

You can also try disabling alerts:

   ExcelApplication.DisplayAlerts = False
   ExcelApplication.Workbooks.Open Filename:=FilePathName, UpdateLinks:=0

Kevin
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This video teaches viewers about errors in exception handling.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

707 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