home *** CD-ROM | disk | FTP | other *** search
- Option Public
- %include "wpbitmsk.lss"
-
-
- Sub ReviewRightsExample
- ' Get name of the current editor and set it equal to the
- ' variable CrntEditor then set up a greeting for the' document
- Dim MyGreeting As String
- Dim CrntEditor As String
- CrntEditor = CurrentApplication.Preferences.UserName
- MyGreeting = Inputbox("What greeting do you want to display?","Set Review Option")
-
- ' Set TeamReview Properties to prevent anyone other than
- ' the current editor from editing this document
- With .ActiveDocument
- .DocControl.UseGreeting = True
- .DocControl.Greeting = MyGreeting
- .DocControl.FileProtectionType = $LwpFileProtectTypeEditors
- .EditorManager.Editors("All Others").Abilities = $LwpEditAbilEditingNotAllowed
- .EditorManager.Editors("All Others").Locks = LwpEditLocksNoCopyAndNoSaveas
- .EditorManager.Editors("All Others").Suggestions = LwpEditSuggEditingInNewVersion
- .EditorManager.Editors(CrntEditor).Abilities = $LwpEditAbilEditCurrentOrNewVer
- .EditorManager.Editors(CrntEditor).Locks = LwpEditLocksNoLocks
- .EditorManager.Editors(CrntEditor).Suggestions = LwpEditSuggNoSuggestions
- End With
- End Sub
-
-
-
-
-