I have numerous workshets which contain formulas and vba codes. To protect the formulas…
Jump to turn (8)
- 1I have numerous workshets which contain formulas and vba codes. To protect the f
- 2This suggestion sounds very promising and it might just be the solution I need.
- 3can I call this from a module
- 4I presume that this will protect the entire worksheet and prevent user changes t
- 5Can you please write this code to work with the Active Sheet
- 6Using the code you have suggested, is there a way of notifying the user when the
- 7When I apply the VBA code below to my worksheet, the cells without formulas can
- 8when the code runs, I get an error 'Unable to set the Locked property of the Ran
- User
I have numerous workshets which contain formulas and vba codes. To protect the formulas in the cells from bein deleted or changed, it is recommended that I protect the sheet. When I do protect a sheet, sometimes the VBA code will fail because the sheet is protected. Is there a way of still protecting my cell formulas yet still allowing my VBA codes to work correctly.
- Assistant
Yes, there is a way to protect your cell formulas while allowing your VBA code to work correctly. You can use the "UserInterfaceOnly" property of the "Protect" method in VBA to achieve this.