Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-11-2013, 12:03 PM
guitargeorge guitargeorge is offline accept only new page numbers and cross references in review mode Windows 7 32bit accept only new page numbers and cross references in review mode Office 2010 32bit
Novice
accept only new page numbers and cross references in review mode
 
Join Date: Oct 2013
Posts: 4
guitargeorge is on a distinguished road
Default accept only new page numbers and cross references in review mode


This is driving me crazy. When I edit a large document and wind up changing the page numbers and cross references, they ALL show up as changes, do I really have to go to each number and accept the change?

I won't do a global accept all changes, because I want the edits I did, the text changes to stay marked, but not all the page and cross reference changes!

Any ideas?
Reply With Quote
  #2  
Old 10-11-2013, 08:19 PM
macropod's Avatar
macropod macropod is offline accept only new page numbers and cross references in review mode Windows 7 32bit accept only new page numbers and cross references in review mode Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
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 10-12-2013, 08:03 AM
Charles Kenyon Charles Kenyon is offline accept only new page numbers and cross references in review mode Windows Vista accept only new page numbers and cross references in review mode Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,082
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

I suspect that a lot of people have this question. I've added a link to this thread in my pages on Complex Documents and Track Changes.
Reply With Quote
  #4  
Old 10-14-2013, 05:46 AM
guitargeorge guitargeorge is offline accept only new page numbers and cross references in review mode Windows 7 32bit accept only new page numbers and cross references in review mode Office 2010 32bit
Novice
accept only new page numbers and cross references in review mode
 
Join Date: Oct 2013
Posts: 4
guitargeorge is on a distinguished road
Default The macro appears to work..

Except when I insert a new table and give it an automatically numbered caption, the new caption numbers are tracked, and they weren't automatically accepted by the macro. Is there some way to include the caption numbers so they also automatically get accepted.

What I'm trying to do is preserve the textual changes, while accepting the automatic renumbering. IN a large document, the cross references, caption numbering and page numbering can become insane, manually accepting hundreds of numbering changes is mind-numbing.

Thanks,
George
Reply With Quote
  #5  
Old 10-14-2013, 03:08 PM
macropod's Avatar
macropod macropod is offline accept only new page numbers and cross references in review mode Windows 7 32bit accept only new page numbers and cross references in review mode Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
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

In my testing of the macro, the tracked caption field updates are accepted. The rest of the caption is left alone, as it's not part of a field. Also, the macro doesn't run automatically - you have to run it as required.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #6  
Old 10-15-2013, 05:25 AM
guitargeorge guitargeorge is offline accept only new page numbers and cross references in review mode Windows 7 32bit accept only new page numbers and cross references in review mode Office 2010 32bit
Novice
accept only new page numbers and cross references in review mode
 
Join Date: Oct 2013
Posts: 4
guitargeorge is on a distinguished road
Default doesn't accept all tracked field changes

Well,
Maybe I'm running it wrong (click View Macros, select and run, right??)
or maybe it doesn't work on my machine, don't know, but thanks for your help!

George
Reply With Quote
  #7  
Old 10-15-2013, 05:39 AM
guitargeorge guitargeorge is offline accept only new page numbers and cross references in review mode Windows 7 32bit accept only new page numbers and cross references in review mode Office 2010 32bit
Novice
accept only new page numbers and cross references in review mode
 
Join Date: Oct 2013
Posts: 4
guitargeorge is on a distinguished road
Default

Something I 've noted, if I copy and paste the Table: field (dynamic number) into the body of the document, and run the macro, it works, and the field in the caption in updated.
As long as the field is only in the caption, it never updates...

George
Reply With Quote
  #8  
Old 10-15-2013, 03:32 PM
macropod's Avatar
macropod macropod is offline accept only new page numbers and cross references in review mode Windows 7 32bit accept only new page numbers and cross references in review mode Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
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

I am unable to replicate that behaviour. Can you attach a document to a post with some representative tracked 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
Reply

Tags
change tracking, review

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
accept only new page numbers and cross references in review mode Bookmarks & cross-references Suchoklates Word 1 09-19-2013 02:32 AM
accept only new page numbers and cross references in review mode Cross-References acolussi Word 9 05-16-2013 02:11 AM
Word 2012 Doc Variables and Review mode without comments cyndor Word 0 02-28-2012 12:21 PM
MS Word cross-references? entity022 Word 3 06-03-2010 06:37 AM
Cross References egcharles Office 0 04-19-2009 06:20 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:03 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