Error message when you try to save a Word 2007 document: “You don’t have permission to save in this location” or “Run-time error ‘5156’”

SYMPTOMS

When you try to save a document in Microsoft Office Word 2007, you may experience one of the following symptoms:

When you click the Microsoft Office Button and then click Save or Save As to save the document in the root folder of the drive, the document is not saved. Additionally, you receive the following error message:C:\filename.doc
You don’t have permission to save in this location.
Contact the administrator to obtain permission.

Would you like to save in the username folder instead?

When you try to programmatically save the document in the root folder of the drive by using a Microsoft Visual Basic for Applications (VBA) macro, the document is not saved. Additionally, you receive the following error message:Run-time error ‘5156’:

Word cannot save or create this file. Make sure the disk you want to save the file on is not full, write-protected, or damaged.
(C:\filename.doc)

CAUSE

This behavior occurs if you try to save the Word 2007 document on a computer that is running Microsoft Windows Vista. By default, Windows Vista applies stronger security to the root folder of the drive.

WORKAROUND

To work around this behavior, do not try to save the Word 2007 document to the root folder of the drive. Instead, save the Word 2007 document to a different folder or subfolder. For example, save the Word 2007 document to the following folder:

C:\Users\username\Documents


APPLIES TO
Microsoft Office Word 2007
Windows Vista Business
Windows Vista Enterprise
Windows Vista Ultimate

——————————————–

Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

 


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply

*
To prove that you're not a bot, enter this code
Anti-Spam Image