Is there a may to protect a sheet using macros?

Is there a may to protect a sheet using macros?

Hello @amogus

Unfortunately, as of now sheet cannot be protected with macros. You can protect a range using ApiProtectedRange class and AddProtectedRange method, which is Protection tab > Protect Range feature.