Workbook.LockServerFile Method (Excel)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

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

Locks the workbook on the server to prevent modification.

expression .LockServerFile

expression A variable that represents a Workbook object.

Show: