'code to unprotect sheet
Sheets("Summary Sheet").Unprotect Password:="your password"
'code to re-protect sheet
Sheets("Summary Sheet").Protect Password:="your password", Contents:=True, Scenarios:= _
True, AllowInsertingRows:=True, AllowDeletingRows:=True, AllowSorting:= _
True, AllowFiltering:=True
Sheets("Summary Sheet").EnableSelection = xlNoRestrictions