Solved

Disable macro and external link warnings.

Posted on 2002-06-11
6
175 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem to delete range 4 54
z = x + y – 1 6 56
Window placement 17 64
VBA saving file message display 5 47
Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

705 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

22 Experts available now in Live!

Get 1:1 Help Now