Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Word VBA getting Project is Unviewable error

Tags:

ms-word

vba

When I try to edit or step into my VBA code for debugging purpose I get "Project is Unviewable". I have created .dotm file at location (C:\Users\UserName\AppData\Roaming\Microsoft\Word\STARTUP).

like image 362
user3463768 Avatar asked May 23 '14 05:05

user3463768


1 Answers

Update 2022

When editing macro-enabled Word documents (for example, .docm files) that are stored on OneDrive, you may receive the following warning:

SECURITY WARNING
Macros have been disabled.
Enabled Content

After clicking Enabled Content, and opening the VBA editor, attempting to view the project may result in the error:
Project is unviewable

After closing and reopening the document, again open the VBA editor. Within the Word document, you will then receive the following message:

EDITING MACROS
Check out this document to view and edit its macros.
Check Out

After checking out out the document, macros may be edited.

like image 122
Christopher Peisert Avatar answered Oct 04 '22 08:10

Christopher Peisert