Solved

Disabling Alert and modal dialog box

Posted on 2001-06-19
6
391 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
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

813 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

18 Experts available now in Live!

Get 1:1 Help Now