an01digital
12/19/2006 10:01:00 AM
Hi Joseph,
Try this...
sub test()
dim sheet as object
for each sheet in activeworkbook.sheets
if sheet.name<>"WELCOME" and sheet.name<>"ImportedRawData" and
sheet.name<>"ImportedDataEdit" then
sheet.delete
end if
next sheet
End sub
Regards
Ankur
www.xlmacros.com
On Dec 19, 2:46 pm, "joecrabtree" <thejoecrabt...@gmail.com> wrote:
> To all,
>
> I have a workbook with many sheets, and wish to delete all of them
> apart from the following 3:
>
> WELCOME, ImportedRawData, + ImportedDataEdit
>
> How can I do this?
>
> Thanks very much for your help in advance,
>
> Regards
>
> Joseph Crabtree