Collapse the table of content
Expand the table of content
Expand Minimize

Document.LockServerFile Method (Word)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Locks the file on the server preventing anyone else from editing it.

expression .LockServerFile

expression An expression that returns a Document object.

This method applies only to documents stored on a server running Microsoft Office SharePoint Server 2007.

© 2016 Microsoft