Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default Automatic accept all pop up dialog box

While macro is executing. how do I get VBA to automatically select either
"YES€ or €œOK€ whenever any dialog box pops up asking for user input? I just
need VBA to automatically accept any €œYES€ as well as €œOK€, which pops up
during execution of macro.

To look through & modify the macro developers code will be like impossible.
Im VBA rookie. Is there a command line which I can insert at the top (after
Dim statement) which can automatically accept all pop ups along execution of
codes?

Thanks alot
--
Edmund
(Using Excel XP)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Automatic accept all pop up dialog box

Hi Edmund,

Try:

Application.DisplayAlerts = False

'Your code

Application.DisplayAlerts = True


---
Regards,
Norman


"Edmund" wrote in message
...
While macro is executing. how do I get VBA to automatically select either
"YES" or "OK" whenever any dialog box pops up asking for user input? I
just
need VBA to automatically accept any "YES" as well as "OK", which pops up
during execution of macro.

To look through & modify the macro developer's code will be like
impossible.
I'm VBA rookie. Is there a command line which I can insert at the top
(after
Dim statement) which can automatically accept all pop ups along execution
of
codes?

Thanks alot
--
Edmund
(Using Excel XP)



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Automatic accept all pop up dialog box

Edmund,
I think the answer is basically "No".
But I assume you mean there is code like:

RetVal=MsgBox("Really quit ?", vbYesNo)
If RetVal=vbYes Then...

You could do a search and replace of "RetVal=MsgBox..." for "RetVal=vbYes"

NickHK

"Edmund" wrote in message
...
While macro is executing. how do I get VBA to automatically select either
"YES" or "OK" whenever any dialog box pops up asking for user input? I

just
need VBA to automatically accept any "YES" as well as "OK", which pops up
during execution of macro.

To look through & modify the macro developer's code will be like

impossible.
I'm VBA rookie. Is there a command line which I can insert at the top

(after
Dim statement) which can automatically accept all pop ups along execution

of
codes?

Thanks alot
--
Edmund
(Using Excel XP)



Reply
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
Accept or Reject a value crabflinger Excel Worksheet Functions 1 April 3rd 09 05:46 PM
How to delete the "Insert Function Dialog Box" (dialog box only)? TBI''d biker Excel Worksheet Functions 2 April 7th 07 09:18 PM
Excel: How to suppress the Names conflict Dialog on automatic VBA copy [email protected] Excel Programming 0 October 21st 05 03:33 PM
Won't accept range name davegb Excel Programming 4 June 13th 05 06:56 PM
control of dialog macro dialog box. on open Gerry Abbott Excel Programming 0 July 22nd 04 05:41 PM


All times are GMT +1. The time now is 06:40 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"