Thanks for the reply. This is what I'm trying to achieve (which I don't think the code posted will do what I'm trying to do).
When Excel is started one cell is locked, this cell changes the rest of the sheet based on it's value using vba, so I'm trying to ensure that it cannot be edited until macros are enabled.
I'm trying to keep the cell locked unless vba is enabled, but I need a way to lock the cell. Using the before save vba is not an option in this particular case.
So, I'm trying to allow the sheet to let one cell be locked until vba is activated, and remains locked until the cell is actually edited.
Ideally the cell is locked, when it is clicked on it unlocks, then when clicked out it locks back. I'm running into a wall trying to figure this out lol.
Thanks for any help or suggestions!!
Much appreciated.
Thanks!