(To save the document, you'll need to use Save as - see ' Edit and Save Outlook's Read-Only Attachments' if you want to save documents back to the email message.) This setting opens all Office documents in a read-only state and you need to click a button before you can edit the document. When Word, Excel, or PowerPoint opens the file and sees this marker it knows to open the file within Protected View and the user sees the red bar. The application knows this because Windows uses the Attachment Execution Service to place a zone identifier in an alternate data stream of the file which indicates it was downloaded from the Internet Zone.
When a document that was previously attached to an email (or downloaded from the Internet) is opened, the red message bar states 'This file originated as an email attachment ' or 'This file was downloaded from the Internet'.