Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 304
Default Say "yes" to "OK"

I have the following:
Sheets("Quick Search").Delete

But it keep asking me if want to permantly delete the sheet and I have to
click on the "OK" to processed. What is the VB code that I need to not have
that ask me the quesiton, just delete it?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Say "yes" to "OK"

try

application.displayalerts = false
Sheets("Quick Search").Delete
application.displayalerts = true

--


Gary

"pgarcia" wrote in message
...
I have the following:
Sheets("Quick Search").Delete

But it keep asking me if want to permantly delete the sheet and I have to
click on the "OK" to processed. What is the VB code that I need to not
have
that ask me the quesiton, just delete it?

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default Say "yes" to "OK"


"pgarcia" skrev i en meddelelse
...
I have the following:
Sheets("Quick Search").Delete

But it keep asking me if want to permantly delete the sheet and I have to
click on the "OK" to processed. What is the VB code that I need to not
have
that ask me the quesiton, just delete it?

Thanks


Application.DisplayAlerts = False

Just remember to set it = True again after delete.

Regards,

Per


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Say "yes" to "OK"

application.displayalerts = false
Sheets("Quick Search").Delete
application.displayalerts = true
--
HTH...

Jim Thomlinson


"pgarcia" wrote:

I have the following:
Sheets("Quick Search").Delete

But it keep asking me if want to permantly delete the sheet and I have to
click on the "OK" to processed. What is the VB code that I need to not have
that ask me the quesiton, just delete it?

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Say "yes" to "OK"

You can use this

Application.DisplayAlerts = False
'your code
Application.DisplayAlerts = True


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"pgarcia" wrote in message ...
I have the following:
Sheets("Quick Search").Delete

But it keep asking me if want to permantly delete the sheet and I have to
click on the "OK" to processed. What is the VB code that I need to not have
that ask me the quesiton, just delete it?

Thanks

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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ... Maria J-son[_2_] Excel Programming 2 March 5th 06 12:20 PM


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