#1
|
|||
|
|||
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. |
#2
|
||||
|
||||
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
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
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? |
#4
|
||||
|
||||
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] |
#5
|
|||
|
|||
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.
|
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 |
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 |