home *** CD-ROM | disk | FTP | other *** search
- Option Public
-
- Sub DocAccess
- ' Declare the variable CrntEditor and assign it the value
- ' of the current user's name.
- Dim CrntEditor As String
- CrntEditor = .Preferences.UserName
-
- ' Restrict editing of this document to the current editor.
- CurrentDocument.DocControl.DocControlRestrictedToEditor = CrntEditor
- CurrentDocument.DocControl.FileProtectionType = $LwpFileProtectTypeOrigAuthor
- End Sub
-
-