View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Tulk[_2_] Bob Tulk[_2_] is offline
external usenet poster
 
Posts: 1
Default Excluding sheet in loop

Piece of cake:

Activeworkbook.Sheets(1).Select
For X = 1 to Activeworkbook.Sheets.Count
If Sheets(X).Name = "whatever" or Sheets(X).Name
= "Whatever else" then
X = X + 1
Else
do your thing
End If
Sheets(X).Select
Next X
-----Original Message-----
I am trying to get a loop that will go to all sheets in

a
book and clear certain cells. There are 2 sheets that I
don't want to delete anything on. The names of these
sheets don't change, but the rest of the sheets do. My
loop works to delete the cells off of all of the sheets,
but I want to exclude these two sheets. How do I exclude

2
sheets from that loop?

Thanks,
David
.