Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default How do I make a macro automatically select Yes when a yes/no box appears?

I run a macro that replaces cells, and it stops and asks, "do you want
to replace the contents of the destination cells?"

i would like to make it automatically select yes.

is this possible?

thanks in advance.
jasonk


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default How do I make a macro automatically select Yes when a yes/no box appears?

Hello
Use:
Application.AlertBeforeOverwriting = False

HTH
Cordially
Pascal


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default How do I make a macro automatically select Yes when a yes/no box appears?

That didn't work. it still shows me yes / no and stops running. I need
it to select yes and keep on running.

TIA






On Mon, 3 Apr 2006 11:25:25 +0200, "papou" <cestpasbon@çanonplus
wrote:

Hello
Use:
Application.AlertBeforeOverwriting = False

HTH
Cordially
Pascal


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default How do I make a macro automatically select Yes when a yes/no box appears?

Try
Application.DisplayAlerts = False

and remember to set it back to True when you're finished

HTH
Cordially
Pascal


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default How do I make a macro automatically select Yes when a yes/no box appears?

On Mon, 3 Apr 2006 15:33:00 +0200, "papou" <cestpasbon@çanonplus
wrote:

Application.DisplayAlerts = False


Thanks a ton. it worked perfectly that time.
excellent.

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
Macro to Select All Sheets and Make Change to Footer Karin Excel Discussion (Misc queries) 2 September 20th 08 10:01 PM
How can make a macro to run evey one hour-automatically SAM SEBAIHI Excel Discussion (Misc queries) 2 January 30th 07 04:12 AM
How to make a macro that automatically starts after clicking a cel Samirkc Excel Programming 1 February 17th 06 12:31 PM
Make a macro run automatically in Excel 03??? Rob Excel Programming 1 June 29th 05 07:29 PM
How to make excell automatically select every other role for shadi How to select every other role? Excel Worksheet Functions 1 May 11th 05 08:04 PM


All times are GMT +1. The time now is 01:30 AM.

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

About Us

"It's about Microsoft Excel"