Word for Mac - ActiveDocument.ReadOnly report false when "Always Open as Read-only" enabled.

Marcus Rowell 1 Reputation point
2024-06-12T06:04:54.62+00:00

We are observing a change in Word for Mac since version 16.84, where ActiveDocument.ReadOnly is incorrectly reported during the DocumentOpen Event if "Always Open as Read-only" is enabled. ActiveDocument.ReadOnly is reported as false, even though the document is in "Viewing mode". Once the DocumentOpen Event is complete, if we run another macro to check ActiveDocument.ReadOnly, it will correctly report the document as read-only.

Prior to the Word for Mac 16.84 release, opening documents with "Always Open as Read-only" enabled, would display a dialog with "The author would like you to open this as read-only, unless you need to make changes. Open as read-only?" with Yes, No and Cancel as options. Since Word for Mac 16.84 this dialog is no longer shown. This change has also introduced changes in the behaviour of ActiveDocument.ReadOnly during the DocumentOpen Event. This change is unexpected and breaks functionality.

I think if the ActiveDocument.ReadOnly was reporting correctly, I should able to replicate the previous "The author would like you to open this as read-only, unless you need to make changes. Open as read-only?" dialog. But with ActiveDocument.ReadOnly incorrectly reporting false during the DocumentOpen Event, I cannot give the user this option.

I have an existing support ticket open (TrackingID#2405250030000280). Are these change expected and documented?

Thanks,
Marcus.

Word
Word
A family of Microsoft word processing software products for creating web, email, and print documents.
742 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,696 questions
0 comments No comments
{count} votes