Link to home
Start Free TrialLog in
Avatar of Matt Pinkston
Matt Pinkston

asked on

No Overwrite on Excel Cells

I have an excel with a bunch of tabs several of which are just displays with formulas, how can I lock down the cells of the display only tabs so you can't overwrite cells.
ASKER CERTIFIED SOLUTION
Avatar of Rob Henson
Rob Henson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If there is VBA code involved in the tabs that you want to protect then put this in Workbook_Open,

Private Sub Workbook_Open()
Sheets("MySheet").Protect Password:="Secret", UserInterFaceOnly:=True
End Sub

Open in new window


What UserInterFaceOnly:=True means is that only the user interface is locked but code may still be run for that tab.