Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    Dec 2003
    Location
    District Of Columbia, USA
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Protect Document - Permissions (2003)

    <P ID="edit" class=small>(Edited by jscher2000 on 07-Jan-04 14:08. Subject line made more descriptive.)</P>In Word2003 in Tools, Protect Document it's possible to check "Formatting restrictions". Can check if enabled with ActiveDocument.EnforceStyle. If true is checked. However, unless the "Start Enforcing Protection" is also clicked the EnforceStyle doesn't lock the styles as expected.
    Checking in Word2003's help I find Permissions. However, the example given shows ActiveWorkbook.Permission even though example is for MSWord. Example from help follows
    **** BEGIN MSWORD Help example *****
    Dim irmPermission As Office.Permission
    Set irmPermission = ActiveWorkbook.Permission
    Select Case irmPermission.Enabled
    Case True
    MsgBox "Permissions are restricted on this document." & vbCrLf & _
    "There are " & irmPermission.Count & " users with rights.", _
    vbInformation + vbOKOnly, "IRM Information"
    Case False
    MsgBox "Permissions are NOT restricted on this document.", _
    vbInformation + vbOKOnly, "IRM Information"
    End Select
    Set irmPermission = Nothing
    ***** END MSWord Help example *****
    Anyone know how to get MSWord document permission?
    Thanks.

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Protect Document - Permissions (2003)

    I'm not running Word 2003 (yet), but I suspect that the object you want to look at is ActiveDocument. That's the equivalent to ActiveWorkbook in Excel.

  3. #3
    New Lounger
    Join Date
    Dec 2003
    Location
    District Of Columbia, USA
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Protect Document - Permissions (2003)

    Yes, I already know and understand ActiveDocument applies to MSWord.

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Protect Document - Permissions (2003)

    If you change the object from ActiveWorkbook to ActiveDocument, do you get an error message? Since I haven't installed 2003, hopefully someone else can help with the error message.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •