Link to home
Start Free TrialLog in
Avatar of MidnightKat
MidnightKat

asked on

Disabling Alert and modal dialog box

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.    
   
Avatar of nikelsh
nikelsh

hi MidnightKat,

can u elobrate your Q with code

nikelsh
Avatar of MidnightKat

ASKER

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.
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.
ASKER CERTIFIED SOLUTION
Avatar of awetherhold
awetherhold

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of DanRollins
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
Comment from expert accepted as answer

Computer101
E-E Moderator