PC Review


Reply
Thread Tools Rate Thread

Answering Pop questions when macro is running

 
 
mmiazga
Guest
Posts: n/a
 
      5th Oct 2009
I have a macro which takes 15 min. to run. At various times while the macro
is running a popup box will appear and ask "A file named k:\abc.prn already
exits at this location. Do you want to replace it?" Yes No Cancel then
another one pops up "Do you want to save the changes......" Yes No Cancel. I
have 15 various pop ups which appear. My answers will always be the same for
each pop up but how do I automate it so it always answers the questions for
me and I don't have to sit and wait to answer each question as they pop up?
 
Reply With Quote
 
 
 
 
JP
Guest
Posts: n/a
 
      5th Oct 2009
Put the following before the message box:

Application.DisplayAlerts = False

and after the message box:

Application.DisplayAlerts = True

This will choose the default answer for the message box, so make sure
you are setting the default button appropriately.

--JP


On Oct 5, 12:37*pm, mmiazga <mmia...@discussions.microsoft.com> wrote:
> I have a macro which takes 15 min. to run. *At various times while the macro
> is running a popup box will appear and ask "A file named k:\abc.prn already
> exits at this location. Do you want to replace it?" Yes No Cancel then
> another one pops up "Do you want to save the changes......" Yes No Cancel.. *I
> have 15 various pop ups which appear. *My answers will always be the same for
> each pop up but how do I automate it so it always answers the questions for
> me and I don't have to sit and wait to answer each question as they pop up?

 
Reply With Quote
 
Joel
Guest
Posts: n/a
 
      5th Oct 2009
YOu need to add an opion it the macro at the beginning to use default values
or wait for respnse. Then modify the maco to handle the two options. YO
could make an array of answers so you can easily change the options or even
get the responses from a file. But the code would have to be modified.
there is no easy way of feeding the response automatically into the boxes.

"mmiazga" wrote:

> I have a macro which takes 15 min. to run. At various times while the macro
> is running a popup box will appear and ask "A file named k:\abc.prn already
> exits at this location. Do you want to replace it?" Yes No Cancel then
> another one pops up "Do you want to save the changes......" Yes No Cancel. I
> have 15 various pop ups which appear. My answers will always be the same for
> each pop up but how do I automate it so it always answers the questions for
> me and I don't have to sit and wait to answer each question as they pop up?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: After the Deletion of Google Answers, U Got Questions Fills the Gap Answering and Asking the Tough Questions sechumlib Microsoft C# .NET 0 7th May 2007 07:35 PM
MVPS answering questions =?Utf-8?B?U3RldmU=?= Microsoft Word Document Management 5 6th May 2007 06:56 PM
Who is answering all the questions here? tom c Microsoft ASP .NET 24 12th Jul 2006 06:07 PM
Answering questions on line =?Utf-8?B?dGVjaHRhbGs=?= Windows XP Internet Explorer 0 15th Jun 2004 06:13 AM
answering the questions. Thomas Windows XP Hardware 7 27th Dec 2003 03:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:38 AM.