Created
August 16, 2019 02:29
-
-
Save hsinjungwu/6e83eb7d44671e22a76ddd7f5277d1a8 to your computer and use it in GitHub Desktop.
Unprotect Excel by VBA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub Unprotect() | |
ActiveSheet.Protect DrawingObjects:=True, CONTENTS:=True, AllowFiltering:=True | |
ActiveSheet.Protect DrawingObjects:=False, CONTENTS:=True, AllowFiltering:=True | |
ActiveSheet.Unprotect | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment