Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ... | Excel Programming |