View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
mangesh_yadav[_204_] mangesh_yadav[_204_] is offline
external usenet poster
 
Posts: 1
Default how to delete unwanted sheets


ok. here it is. Use

Sub DeleteSheet()

Application.DisplayAlerts = False

For Each sht In Worksheets
If sht.Name < "Log" And sht.Name < "Data" And sht.Name <
"Lists" Then
sht.Delete
End If

Next

Application.DisplayAlerts = True
End Su

--
mangesh_yada
-----------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...fo&userid=1047
View this thread: http://www.excelforum.com/showthread.php?threadid=31868