Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 168
Default Deleting sheets without confirmation

I'm using the following code:

Sheets("Setup").delete


What do I need to add to this to prevent the confirmation message from
appearing? I would like the sheet to be deleted without any interaction.

Thanks,
Paul


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Deleting sheets without confirmation

Use Application.DisplayAlerts = False to suppress the
confirmation message. E.g.,

Application.DisplayAlerts = False
Sheets("Setup").Delete
Application.DisplayAlerts = True


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"PCLIVE" wrote in message
...
I'm using the following code:

Sheets("Setup").delete


What do I need to add to this to prevent the confirmation
message from appearing? I would like the sheet to be deleted
without any interaction.

Thanks,
Paul



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 168
Default Deleting sheets without confirmation

Thanks Chip.
Most helpful. Also, great website. Thanks again.

Paul

"Chip Pearson" wrote in message
...
Use Application.DisplayAlerts = False to suppress the confirmation
message. E.g.,

Application.DisplayAlerts = False
Sheets("Setup").Delete
Application.DisplayAlerts = True


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"PCLIVE" wrote in message
...
I'm using the following code:

Sheets("Setup").delete


What do I need to add to this to prevent the confirmation message from
appearing? I would like the sheet to be deleted without any interaction.

Thanks,
Paul





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Deleting sheets without confirmation

Application.DisplayAlerts = False
Sheets("Setup").delete
Application.DisplayAlerts = True

--
Regards,
Tom Ogilvy


"PCLIVE" wrote in message
...
I'm using the following code:

Sheets("Setup").delete


What do I need to add to this to prevent the confirmation message from
appearing? I would like the sheet to be deleted without any interaction.

Thanks,
Paul




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 168
Default Deleting sheets without confirmation

Thanks Tom.
Much appreciated.


"Tom Ogilvy" wrote in message
...
Application.DisplayAlerts = False
Sheets("Setup").delete
Application.DisplayAlerts = True

--
Regards,
Tom Ogilvy


"PCLIVE" wrote in message
...
I'm using the following code:

Sheets("Setup").delete


What do I need to add to this to prevent the confirmation message from
appearing? I would like the sheet to be deleted without any interaction.

Thanks,
Paul








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 sheets 2&3 doug53098 Excel Discussion (Misc queries) 2 July 7th 05 08:22 PM
deleting sheets KLP Excel Discussion (Misc queries) 3 January 14th 05 12:24 AM
Deleting Sheets Jordan[_3_] Excel Programming 4 February 13th 04 03:19 PM
Deleting sheets Gary Adamson[_2_] Excel Programming 2 October 30th 03 07:24 PM
deleting sheets david Excel Programming 2 July 31st 03 01:02 AM


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