Solved

Disable macro and external link warnings.

Posted on 2002-06-11
6
178 Views
Last Modified: 2010-05-02
I am opening a number of excel files and reading ranges
from many pages and inserting them into a DB.

This all being done from VB6.  

My problem is that I cannot seem to disable the warning
message and dialog prompts that surface when certain xls
files are opened.

I have tried the following lines of code with no success.

xlApp.Interactive = False
xlApp.DisplayAlerts = False

Is there another way to kill these warnings.  This is a
process that runs on its own.
.
0
Comment
Question by:ernst8498
6 Comments
 
LVL 8

Expert Comment

by:jessnjeff
ID: 7070840
You need to use the automationsecurity property of the application and set it to low.

0
 

Author Comment

by:ernst8498
ID: 7071109
Actually, I had this question answered by another developer in another forum - the answer was to set an argument of the workbook.open method.  This relazed the warnings to a no-show status...

Thx anyway.
0
 

Author Comment

by:ernst8498
ID: 7071113
I have this question answered by another developer in another forum - the answer was to set the UpdateLinks argument of the Workbook.open method to 0.

the other macro arguments seemed to be gone after this suggesting that perhaps the

xlApp.Interactive = False
xlApp.DisplayAlerts = False

commands were working for those alerts..

Thx to anyone that tried to help me.
0
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.

 
LVL 44

Expert Comment

by:bruintje
ID: 7071133
you can ask a 0 point Q in customer support at the link

http://www.experts-exchange.com/commspt/

-to make this a PAQ
-and refund your points for another time
-and please inlcude a link to this question that's easier for the moderators

:O)Bruintje
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7899978
ernst8498, an EE Moderator will handle this for you.
Moderator, my recommended disposition is:

    Refund points and save as a 0-pt PAQ.

DanRollins -- EE database cleanup volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 7978253
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

820 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