Solved

EXCEL VISUAL BASIC

Posted on 2007-03-23
1
137 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
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

Title # Comments Views Activity
Access 2013 combo box not working 3 51
TT Auto Dashboard 13 95
Problem to refer to value 8 62
Powerpoint 2013: Change cell reference in excel link 3 80
The purpose of this article is to demonstrate how we can use conditional statements using Python.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 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