liabilityquek
New Member
- Joined
- Oct 17, 2021
- Messages
- 25
- Office Version
- 2019
- Platform
- Windows
Hi
Is there a way to protect and hide cells with formula using VBA while editing other cells? Currently I am using this code which does not allow me to editing some of the cells.
Is there a way to protect and hide cells with formula using VBA while editing other cells? Currently I am using this code which does not allow me to editing some of the cells.
VBA Code:
Sub HideFormula()
Selection.Locked = True
Selection.FormulaHidden = True
ActiveSheet.Protect Password:="1234"
End Sub