Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 10-31-2014, 05:26 PM
macropod's Avatar
macropod macropod is offline How to get "Track Changes" to ignore "Field Code Changed"? Windows 7 64bit How to get "Track Changes" to ignore "Field Code Changed"? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

No. However, you can use a macro to automatically accept all field updates:
Code:
Sub AcceptTrackedFields()
Application.ScreenUpdating = False
'This sub accepts any tracked changes instigated by Word affecting fields – not field code edits
Dim Story As Range, oFld As Field, oRev As Revision, Rng As Range
With ActiveDocument
  ' Loop through all range objects and accept tracked changes on fields
  For Each Story In .StoryRanges
    For Each oRev In Story.Revisions
      For Each oFld In oRev.Range.Fields
        oFld.ShowCodes = True
        Set Rng = oFld.Code
        With Rng
          .MoveEndUntil cset:=Chr(21), Count:=wdForward
          .MoveEndUntil cset:=Chr(19), Count:=wdBackward
          .End = .End + 1
          .Start = .Start - 1
          oFld.ShowCodes = False
          .Revisions.AcceptAll
        End With
      Next
    Next
  Next
End With
Set Rng = Nothing
Application.ScreenUpdating = True
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: "Changes made were lost...reconnect with server", when switching "from" field randhurrle Outlook 2 02-25-2015 06:51 PM
Replying to "Sent Items", the "To:" field always defaults to me rather than person I sent to ravl13 Outlook 4 10-30-2014 06:29 PM
How to get "Track Changes" to ignore "Field Code Changed"? Numbering format not "tracked" in track changes w/ formatting "on." Velocitydreamer Word 1 05-26-2013 07:04 AM
How to get "Track Changes" to ignore "Field Code Changed"? Word options "field shading" reverts to "when selected" PaulBurcham Word 1 04-20-2013 11:18 AM
How to get "Track Changes" to ignore "Field Code Changed"? How do I prevent the "author" or "owner" fields from being changed? Bones Word 3 06-08-2012 12:15 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:43 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft