Hello,
I need to allow the user to insert and delete unlocked rows, along with the ability to edit objects after the macro runs. I am having problems finding the proper code in the forums.
This is the macro I am running:
Sub Hidebutton()
ActiveSheet.Unprotect Password:=12345
Application.ScreenUpdating = False
Selection.AutoFilter Field:=1, Criteria1:="<>"
Application.ScreenUpdating = True
ActiveSheet.Protect Password:=12345
End Sub
I found this:
ActiveSheet.Protect Password:=" ", Contents:=True, DrawingObjects:=False, UserInterfaceOnly:=True, _
AllowFormattingCells:=True
It seems to be on the right track but I need help.
Thanks so much for your time.
Bookmarks