W wkullek New member Feb 15, 2024 #1 Hello, what syntax does the VBA Compiler accept to protect and unprotect a sheet? I get “Please open the VBA compiler of XLS Padlock and recompile your code.” with: ActiveSheet.unprotect Password:=“xyz” Thank you very much! Last edited: Feb 15, 2024
Hello, what syntax does the VBA Compiler accept to protect and unprotect a sheet? I get “Please open the VBA compiler of XLS Padlock and recompile your code.” with: ActiveSheet.unprotect Password:=“xyz” Thank you very much!
gdgsupport Support Staff member Feb 17, 2024 #2 All access to Excel objects such as ActiveSheet must be preceded with Application. Try Application.ActiveSheet.unprotect("xyz") Last edited: Feb 17, 2024
All access to Excel objects such as ActiveSheet must be preceded with Application. Try Application.ActiveSheet.unprotect("xyz")