"Not" and "Not Like"
If WSh.Name < "Admin" and _
Not WSh.Name like "Server * Projection Seed Values" Then
--
HTH
Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
"Grant Reid" wrote in message
...
Hi
I need to perform arbitary actions on all sheets in my workbook except for
a
sheet with the name "Admin" and any sheets with the following naming
convention "Server * Projection Seed Values". Am at my wits end with this
one. Can anyone help. See my code below;
Dim qt As QueryTable
Dim WSh As Worksheet
For Each WSh In ThisWorkbook.Worksheets
If WSh.Name < "Admin" and < "Server * Projection Seed Values"
Then '<------ This is the problem area
'Perform action here
End If
Next WSh
End Sub
Many Thanks - Grant
|