Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default deleting worksheet

What line of code should I include while deleting a worksheet through
VBA so that the security feature (The selected sheet(s) will be
permanently deleted.) is disabled. Right now I have to click "OK" for
the code to continue. Any suggestions?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default deleting worksheet

Hi
use something like
...
application.displayalerts=false
'delete the sheet
application.displayalerts=True

--
Regards
Frank Kabel
Frankfurt, Germany


Fun Kid wrote:
What line of code should I include while deleting a worksheet through
VBA so that the security feature (The selected sheet(s) will be
permanently deleted.) is disabled. Right now I have to click "OK"

for
the code to continue. Any suggestions?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default deleting worksheet

Hi Frank,

Thank you for your prompt reply. It worked.

Fun Kid

"Frank Kabel" wrote in message
...
Hi
use something like
..
application.displayalerts=false
'delete the sheet
application.displayalerts=True

--
Regards
Frank Kabel
Frankfurt, Germany


Fun Kid wrote:
What line of code should I include while deleting a worksheet

through
VBA so that the security feature (The selected sheet(s) will be
permanently deleted.) is disabled. Right now I have to click "OK"

for
the code to continue. Any suggestions?



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
deleting of worksheet oldLearner57 Excel Discussion (Misc queries) 1 August 28th 08 06:31 AM
Deleting a worksheet but retaining values from the worksheet. [email protected] Excel Discussion (Misc queries) 1 September 13th 06 03:00 PM
Deleting a worksheet but retaining values from the worksheet. [email protected] Excel Discussion (Misc queries) 1 September 13th 06 02:48 PM
deleting values in a worksheet without deleting the formulas patti Excel Worksheet Functions 1 October 28th 05 09:49 PM
deleting worksheet Laurent M Excel Discussion (Misc queries) 1 January 25th 05 11:31 AM


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