Microsoft KB Archive/923917

From BetaArchive Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Knowledge Base


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'"

Article ID: 923917

Article Last Modified on 10/15/2007



APPLIES TO

  • Microsoft Office Word 2007
  • Windows Vista Business
  • Windows Vista Enterprise
  • Windows Vista Ultimate




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



Additional query words: word2007 word2k7 word12 wd2007 wd2k7 wd12

Keywords: kberrmsg kbtshoot kbprb kbsavefile kbexpertisebeginner KB923917