Checking all sheets except 1
Is there any way to amend this code so that it checks all sheets except the
sheet named Holidays
Private Sub testdelete()
'Clears Picture when changing the Year
'Application.ScreenUpdating = False
For n = 1 To Sheets.Count
With Sheets(n)
Set myPict = Nothing
On Error Resume Next
Set myPict = .Pictures("New Years Large")
On Error GoTo 0
If myPict Is Nothing Then
'not on this sheet
Else
myPict.Delete
Range("F2").Value = ""
'exit for 'stop looking on other sheets??????
End If
End With
Next n
End Sub
|