RemoveUser Method

Microsoft Excel Visual Basic

RemoveUser Method

       

Disconnects the specified user from the shared workbook.

expression.RemoveUser(Index)

expression   Required. An expression that returns a Workbook object.

Index   Required Long. The user index.

Example

This example disconnects user two from the shared workbook.

Workbooks(2).RemoveUser 2