Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I want a command button that deletes all sheets except the one named Master
|
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try the below
Dim ws As Worksheet Application.DisplayAlerts = False For Each ws In Sheets If ws.Name < "Master" Then ws.Delete Next Application.DisplayAlerts = True -- Jacob "oldjay" wrote: I want a command button that deletes all sheets except the one named Master |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks
"Jacob Skaria" wrote: Try the below Dim ws As Worksheet Application.DisplayAlerts = False For Each ws In Sheets If ws.Name < "Master" Then ws.Delete Next Application.DisplayAlerts = True -- Jacob "oldjay" wrote: I want a command button that deletes all sheets except the one named Master |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Deleting Custom Views when Deleting Sheets | Excel Programming | |||
Deleting sheets | Excel Programming | |||
Deleting all sheets except one | Excel Programming | |||
Deleting Sheets | Excel Programming | |||
Deleting Sheets | Excel Programming |