Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2005

Tip: Looking for answers? Try searching our database.

Track Changes not working in word

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sudhakara.T.P. - 09 Nov 2005 09:16 GMT
Hi,
I have an document in which I have written VBA code to accept/reject the
changes that were made to the document using the track / revisions
functionality in word.
I am facing some problem wherein I am not able to accept/reject some of the
revisions that were made to the document.
Can anyone help me why this is happening. I have no idea on this.
Regards
Sudhakara.T.P.
Shauna Kelly - 13 Nov 2005 05:51 GMT
Hi Sudhakara

ActiveDocument.Revisions.AcceptAll should work. But there are problems, at
least in Word 2003, in the User Interface that makes it difficult to accept
or reject some tracked changes. I most frequently encounter this with
formatting changes in tables. It would not surprise me if the same changes
were impossible to accept or reject in code, too.

Apart from that, the .Revisions collection is flaky. And, as you accept or
reject revisions, obviously the number of revisions changes. So the best way
may be to loop backwards using a counter. That is:

Dim lngCounter As Long
With ActiveDocument
   For lngCounter = .Revisions.Count To 1 Step -1
       .Revisions(lngCounter).Accept
   Next lngCounter
End With

Hope this helps.

Shauna Kelly.  Microsoft MVP.
http://www.shaunakelly.com/word

> Hi,
> I have an document in which I have written VBA code to accept/reject the
[quoted text clipped - 6 lines]
> Regards
> Sudhakara.T.P.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.