Skip to content

Instantly share code, notes, and snippets.

@AlexanderPro
AlexanderPro / MSEXCEL-SHEETPROTECTION.md
Created September 6, 2024 12:07 — forked from LiEnby/MSEXCEL-SHEETPROTECTION.md
Reverse Engineering; Microsoft Excel Sheet Protection

Microsoft Excel offers a feature called "Sheet Protection" it essentially allows you to lock down an excel document so you cannot edit certain sheets and aspects of it attempting to edit protected sheets will return an error message: image

and trying to unprotect it under the review tab, does ask for a password.

image

i figured; "This is MS Excel, surely someone has found a way to disable this?"

@AlexanderPro
AlexanderPro / Examples
Last active February 19, 2019 13:13 — forked from davidfowl/Examples
Powershell function that recursively walks all project items within a project and lets you execute an action on each one
#In Package Manager Console:
#1. Re-format all files of the selected project
#Format-Document
#2. Re-format all files of the whole solution
#Get-Project -All | Format-Document
# Print all project items
Recurse-Project -Action {param($item) "`"$($item.ProjectItem.Name)`" is a $($item.Type)" }
# Function to format all documents based on https://gist.github.com/984353