Solved

Disable macro and external link warnings.

Posted on 2002-06-11
6
176 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now