Consulting

Results 1 to 3 of 3

Thread: How to lock Track Changes for multiple documents in one go (macro?)

  1. #1

    How to lock Track Changes for multiple documents in one go (macro?)

    Hi all,
    This is my first post here, thanks in advance for your help!
    I have 100+ Word files for which I need to lock Track Changes.
    If I need to do this for one single file, I go to Review / Track Changes / Lock Tracking / and I insert a password twice.
    But doing this for 100+ documents is quite time consuming.
    Would there be a solution to do this in one go for multiple Word files? A macro for instance?
    Many thanks!
    Claire

  2. #2
    See https://www.gmayor.com/document_batch_processes.htm

    Use the following as a user defined process

    Function LockTracking(oDoc As Document) As Boolean    On Error GoTo err_Handler
        oDoc.Protect Password:="password", _
                     NoReset:=False, _
                     Type:=wdAllowOnlyRevisions, _
                     UseIRM:=False, _
                     EnforceStyleLock:=False
        LockTracking = True
    lbl_Exit:
        Exit Function
    err_Handler:
        LockTracking = False
        Resume lbl_Exit
    End Function
    Graham Mayor - MS MVP (Word) 2002-2019
    Visit my web site for more programming tips and ready made processes
    http://www.gmayor.com

  3. #3
    Thank you so much! I will look into this solution. I will let you know if I still have questions.
    Claire

Posting Permissions

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