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


Hi,

Is there any way to delete the following worksheets without the program
asking the user if it is ok? ie. automatically without the user
knowing.

Workbooks(3).Activate
Worksheets("Main Components").Delete
Worksheets("Hook-Up Material (Mechanical)").Delete
Worksheets("Hook-Up Material (Electrical)").Delete
Worksheets("Spare Parts").Delete
Workbooks(3).Save

Thanks
Susie


--
SusieQ
------------------------------------------------------------------------
SusieQ's Profile: http://www.excelforum.com/member.php...o&userid=30818
View this thread: http://www.excelforum.com/showthread...hreadid=512734

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Deleting worksheets privately

Application.DisplayAlerts = False
Workbooks(3).Activate
Worksheets("Main Components").Delete
Worksheets("Hook-Up Material (Mechanical)").Delete
Worksheets("Hook-Up Material (Electrical)").Delete
Worksheets("Spare Parts").Delete
Workbooks(3).Save
Application.DisplayAlerts = True

--
Regards,
Tom Ogilvy


"SusieQ" wrote in
message ...

Hi,

Is there any way to delete the following worksheets without the program
asking the user if it is ok? ie. automatically without the user
knowing.

Workbooks(3).Activate
Worksheets("Main Components").Delete
Worksheets("Hook-Up Material (Mechanical)").Delete
Worksheets("Hook-Up Material (Electrical)").Delete
Worksheets("Spare Parts").Delete
Workbooks(3).Save

Thanks
Susie


--
SusieQ
------------------------------------------------------------------------
SusieQ's Profile:

http://www.excelforum.com/member.php...o&userid=30818
View this thread: http://www.excelforum.com/showthread...hreadid=512734



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 worksheets David Excel Discussion (Misc queries) 2 January 19th 07 08:19 PM
Deleting Worksheets in VBA Knut Dahl Excel Programming 4 May 23rd 05 07:22 PM
Help deleting worksheets Wilhelmutt Excel Discussion (Misc queries) 2 April 19th 05 03:23 AM
Deleting worksheets Alan L. Wagoner Excel Programming 4 January 24th 05 03:19 PM
Deleting worksheets Oscar Excel Programming 1 July 23rd 04 04:36 AM


All times are GMT +1. The time now is 10:49 AM.

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"