Solved

Disabling Alert and modal dialog box

Posted on 2001-06-19
6
389 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
Comment Utility
hi MidnightKat,

can u elobrate your Q with code

nikelsh
0
 

Author Comment

by:MidnightKat
Comment Utility
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
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 1

Accepted Solution

by:
awetherhold earned 50 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Comment from expert accepted as answer

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

772 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

10 Experts available now in Live!

Get 1:1 Help Now