Sub deleterow()
Title = Range("A" & ActiveCell.Row)
Response = MsgBox("Do you want to delete " & Title & " ?", _
vbYesNo, "Delete Row")
If Response = vbYes Then
For Each sht In ThisWorkbook.Sheets
Select Case sht.Name
Case _
"January", _
"February", _
"March", _
"April", _
"May", _
"June", _
"July", _
"August", _
"September", _
"October", _
"November", _
"December"
With sht
Set c = .Rows.Find(what:=Title, _
LookIn:=xlValues)
If Not c Is Nothing Then
sht.Unprotect
c.EntireRow.Delete
sht.Protect
End If
End With
End Select
Next sht
End If
End Sub
> Okay, this works great...however, if the month sheet is protected, it
> won't work. Can I throw a
> ActiveWorkbook.ActiveSheet.Unprotect
> statement in the With statement and then protect it again before the
> With statement ends?