Results 1 to 3 of 3
  1. #1
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    861
    Thanks
    0
    Thanked 10 Times in 9 Posts

    ActiveDocument.Permission

    In Word 2010, I want to determine whether Restrictions have been set on the active document. I'm using the following code:

    Code:
        If ActiveDocument.Permission.Enabled = True Then
            MsgBox "Permission Enabled"
        End If
    An error is raised because of invalid use of the Permission object. The Microsoft website says: "Use the Enabled property to determine whether a document has restricted permissions." The site also says: "Use of the Permission object raises an error when the Windows Rights Management client is not installed."

    I don't have the Windows Rights Management client installed, but I am able to use the Restrict Editing task pane to restrict editing. After restricting editing, what property must I use in VBA to determine whether or not permission has been enabled?

    Thanks.

  2. #2
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,534
    Thanks
    3
    Thanked 147 Times in 140 Posts
    Try
    ActiveDocument.ProtectionType
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  3. #3
    5 Star Lounger
    Join Date
    Mar 2001
    Location
    New York, NY
    Posts
    861
    Thanks
    0
    Thanked 10 Times in 9 Posts
    That was where I headed first, but there are options for allowing only comments, form fields, reading, revision. What about Formatting Restrictions? I suppose my best option is protection type <> no protection.

Posting Permissions

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