Solved

Disable macro and external link warnings.

Posted on 2002-06-11
6
179 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

738 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