I have some code which keeps causing an
Error 70: Permission Denied
in my VBA code. I can't work out why, because I know that the worksheet is unprotected and that I can make changes to it. The code in question is
sh.Name = "square"
It attempts to rename a shape that has been copied from another sheet and pasted into the sheet - there are no other shapes in the sheet with that name, because prior to these code I have already deleted all shapes with that name.
Any suggestion as to what might cause this permissions error?