I am using Excel 2010 and I have a workbook with sheets that must be protected, but I still want to make changes to locked cells from a VBA macro. I found out that this is easily possible by running
myWorksheet.Protect UserInterfaceOnly:=True
However if a user opens another workbook in the same Excel Application, they might accidentaly run another macro which might mess up my worksheet.
Is there an option like UserInterfaceOnly
to protect from macros of other workbooks as well?
Otherwise is it safe to only temporarly use UserInterfaceOnly
and fully protect at the end of any of my macros again, or would this be dangerous due to concurrency?