For what it's worth, an alternative approach in the Word object model would be to check if a document is displayed in Protected view or not. Under the Application object, there is a ProtectedViewWindows collection (whose members are Window objects).
__________________
Stefan Blom
Microsoft Word MVP
Microsoft 365 apps for business
Windows 11 Professional
|