Solved

Disabling Alert and modal dialog box

Posted on 2001-06-19
6
390 Views
Last Modified: 2008-02-01
My program opens up another application (Visio), and makes it invisible. The actions I perform in the
application cause an alert and modal dialog box to appear and prompt the user to answer a yes or no
question. I need to set the answer to NO programatically. VB says the AlertResponse property will accomplish
this. However, the line of code

appVisio.AlertResponse = 7   'where 7 is the value of IDNO

fails to work properly. Does anyone know how I can make this work? Thanks in advance.    
   
0
Comment
Question by:MidnightKat
6 Comments
 
LVL 1

Expert Comment

by:nikelsh
ID: 6209097
hi MidnightKat,

can u elobrate your Q with code

nikelsh
0
 

Author Comment

by:MidnightKat
ID: 6210314
I open an application in visio

appVisio = CreateObject("Visio.InvisibleApp")

This creates my invisible application of Visio.

I then have

appVisio.AlertResponse = 7   'where 7 is the value of IDNO

to 'supposedly' set the default value of all alert and modal dialog boxes to 'No'

As for any other code, there is none that controls this function.
0
 

Author Comment

by:MidnightKat
ID: 6210339
I open an application in visio

appVisio = CreateObject("Visio.InvisibleApp")

This creates my invisible application of Visio.

I then have

appVisio.AlertResponse = 7   'where 7 is the value of IDNO

to 'supposedly' set the default value of all alert and modal dialog boxes to 'No'

As for any other code, there is none that controls this function.
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 1

Accepted Solution

by:
awetherhold earned 50 total points
ID: 6210518
try using Application.DisplayAlerts = False to stop alert boxes from showing up.  And then use Application.DisplayAlerts = True when you are done.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7139554
Hi MidnightKat,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will suggest to:

    Accept awetherhold's comment(s) as an answer.

MidnightKat, if you think your question was not answered at all or if you need help, you can simply post a new comment here.  Community Support moderators will follow up.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 
LVL 1

Expert Comment

by:Computer101
ID: 7173287
Comment from expert accepted as answer

Computer101
E-E Moderator
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

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 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…
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…

932 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

9 Experts available now in Live!

Get 1:1 Help Now