Sup boys and gurls, im back again
Simple question to get my code as thicc as possible. Im running 2 macro, protect and unprotect, that loop trough the sheet count and protect or unprotect all sheets depending on needed; its an all around sub that im calling from different wb on different occasion but its not every-bulletproof yet.
Ive got one error when i run it manualy and have multiple sheet selected (like its trying to run the loop one every sheet on the multi-selection, multi-select not being a sheet it create an objet problem)
Is there a way to add a non memory/time consuming line to avoid this error?
Sub UnprotectWorksheets()
Dim i As Integer
' Insert line that says "select whatever sheet" so it cancel inital multiselect?
' (I dont want to use select plz halp :( )
For i = 1 To ActiveWorkbook.Worksheets.Count
Worksheets(i).Unprotect
Next i
End Sub


