Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Microsoft Office 365 Word Macro Causing a Project is unviewable error

remeng

Technical User
Jul 27, 2006
518
1
0
16
US
This article covers how to correct the "Project unviewable" error message in Microsoft Word when editing the VBA code in a macro enabled file from a SharePoint Site or OneDrive Word document (.docm). Here are the quick steps to correct the issue.

1728489353995.png

The reason that you are seeing this message is that OneDrive and SharePoint are multi-user platforms. This means that multiple people can open and edit the same document at the same time. This is results in a need for Check In / Check Out of a document to prevent people from stepping on each other's changes. If you are using a local drive that is not mapped / connected to either OneDrive or SharePoint, you will not receive this error.

When a document is macro enabled (.docm), code cannot be edited by multiple people at the same time. This is a security feature to prevent broken code. You'll receive the "Project is unviewable" until the .docm file is Checked Out. Once Checked Out, the VBA code will become viewable again and the error message will go away.

1728489937400.png

To prevent the ability for multiple people to have the potential to edit the Word document at the same time, you need to turn off this option.

Go to FILE > Options > General > Co-authoring options

Uncheck the "Allow co-authoring on files with macros" check box

1728490346474.png

Press the Ok button

Exit out of Microsoft Word

Re-launch Microsoft Word

Open the macro enabled Word Document (.docm)

Select Developer > Visual Basic or (Alt - F11)

Your code should now be visible.

Hope this helps,

Mike
 
Thanks Mike
 

Part and Inventory Search

Sponsor

Back
Top