Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-02-2013, 11:06 PM
leb leb is offline Need to delete 'field code changed' in my reference list Windows 8 Need to delete 'field code changed' in my reference list Office 2007
Novice
Need to delete 'field code changed' in my reference list
 
Join Date: Mar 2013
Posts: 7
leb is on a distinguished road
Default Need to delete 'field code changed' in my reference list

Good morning,
I am using Word 2007 to write my document and referencing with endnote. I made recent modifications and used 'track changes'.
I accepted all the changes now. However, I have 'field code changed' that appears 3 times in my reference list and that can't be removed. Please help get rid of them as soon as possible...


Many thanks.
Reply With Quote
  #2  
Old 05-02-2013, 11:32 PM
macropod's Avatar
macropod macropod is offline Need to delete 'field code changed' in my reference list Windows 7 64bit Need to delete 'field code changed' in my reference list Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Try running the following macro:
Code:
Sub AcceptTrackedFields()
'This sub accepts any tracked changes affecting fields
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
End Sub
For installation & usage instructions, see: http://www.gmayor.com/installing_macro.htm
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 05-03-2013, 05:15 AM
leb leb is offline Need to delete 'field code changed' in my reference list Windows 8 Need to delete 'field code changed' in my reference list Office 2007
Novice
Need to delete 'field code changed' in my reference list
 
Join Date: Mar 2013
Posts: 7
leb is on a distinguished road
Default

I followed the steps advised. When I run the macro, the document flickers but the 'field code changed' remains. I tried again to manually accept the changes, still not working. What to do please?

PS: the code to run is the whole text from 'sub' till 'end sub', right?
Reply With Quote
  #4  
Old 05-03-2013, 06:18 AM
macropod's Avatar
macropod macropod is offline Need to delete 'field code changed' in my reference list Windows 7 64bit Need to delete 'field code changed' in my reference list Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Are you sure the content that isn't updating is in fields? If so, what kinds of fields?

Can you attach a document to a post with some representative data (delete anything sensitive)? You do this via the paperclip symbol on the 'Go Advanced' tab.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 05-04-2013, 12:25 AM
leb leb is offline Need to delete 'field code changed' in my reference list Windows 8 Need to delete 'field code changed' in my reference list Office 2007
Novice
Need to delete 'field code changed' in my reference list
 
Join Date: Mar 2013
Posts: 7
leb is on a distinguished road
Default

I decided to go back to the text, delete the references that were causing trouble and re-reference them. All the 'field code changed' notifications disappeared after I corrected the first reference. I wouldn't have thought of doing this if there were too many of them I guess. Thanks again for the help...truly appreciated.
Reply With Quote
Reply

Tags
endnote, microsoft word, track changes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Field not showing in Pivot Table Field List kmcovington Excel 0 10-26-2012 10:14 AM
Need to delete 'field code changed' in my reference list Toggle Merge Field Code Help Please tonywatsonmail Mail Merge 2 08-11-2011 07:06 AM
Is there any way of importing Indicators field through code? Prabhakar Project 0 04-07-2011 05:50 AM
field code question bordercollie10 Mail Merge 3 10-15-2009 07:55 AM
Delete excel files by code in Access Barry Richardson Office 0 06-13-2005 06:26 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:48 PM.


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