G
Guest
I want to all delete sheets from my workbook except for ones that i specify.
This is what I had in mind. If I wanted to exclude say Sheet1, Sheet4, and
Sheet7, how can I incorporate this into the following code?
Can I call a function?
Bruce
Dim wkSht as WorkSheet
For each wkSht in WorkSheets
if wkSht <> 'something' then
wkSht.Delete
next wkSht
This is what I had in mind. If I wanted to exclude say Sheet1, Sheet4, and
Sheet7, how can I incorporate this into the following code?
Can I call a function?
Bruce
Dim wkSht as WorkSheet
For each wkSht in WorkSheets
if wkSht <> 'something' then
wkSht.Delete
next wkSht