Thread: For Each Next
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Vasant Nanavati Vasant Nanavati is offline
external usenet poster
 
Posts: 1,080
Default For Each Next

Dim ws As Worksheet
For Each ws In Worksheets
If ws.Name < "whatever" And ws.Name < "whateverelse" _
And ws.Name < "whateveragain" Then
'run your procedure
End If
Next

--

Vasant


"Greg" wrote in message
...
Hi,

I have 12 sheets and need to run For Each - Next loop only
on 9 of them.
How would I exclude 3 other sheets?

I can't amend sheet names ( or sheet code names).


TIA,

Greg