LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Pop up message control using macros

Beautiful, Jesse. Worked like a charm!! Thanks for the
quick post.

Pete
-----Original Message-----
Try adding:

Application.DisplayAlerts = False

Above your code. This will make it just overwrite

without asking unless the
target file is read only.

I'm not sure but that might cause the second one to not

show as well.

Jesse Hamilton



"Pete Davis" wrote in message
...
Hi All

Is it possible to respond to pop up messages with a
macro? Im trying to respond to the two following pop

ups,
which are generated by activities carried out by the
macro:

1. File already exists. Replace? Yes or No? (Im using

the
macro to save an updated version of an existing file).

In
this case, I would like the macro to respond with a

YES
2. Large amount of data exists on clipboard. Do you

want
data to be available.......Yes or No? (Im using the

macro
to close a file which ive copied a large amount of data
from.) In this case, I would like the macro to respond
with a NO.

In Macro Record mode, I responded to each message, but

no
code of anykind was copied into the macro.

I dont want the user to be inconvenienced with having

to
respond to these messages.

Thanks for any advice.

Pete




.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Control Combo Box Macros LoriDe Excel Discussion (Misc queries) 4 June 14th 07 06:51 PM
control form macros and protected sheets Greyson Excel Discussion (Misc queries) 1 November 4th 06 02:33 AM
How do I control where the input message appears? Bernina27 Excel Discussion (Misc queries) 2 September 16th 05 03:04 AM
Assigning Multiple Macros to One ComboBox Control Tim Zych[_2_] Excel Programming 0 July 23rd 03 06:36 PM
Assigning Multiple Macros to One ComboBox Control Michael J. Malinsky Excel Programming 0 July 23rd 03 06:10 PM


All times are GMT +1. The time now is 10:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"