Depending on your Trust Centre settings, files opened from an email will be opened in Protected Mode and Read Only, It may be possible to check that status and report when Read Only.
Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.