Solved

Disable macro and external link warnings.

Posted on 2002-06-11
6
177 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
ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

770 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