Hi Rob
There are kind of two problems with the Revisions collection.
The first is that .Revisions.Count isn't necessarily the number of Revisions
in the document. You can see this if you use the toolbar in the UI and layer
two revisions on top of one another, perhaps with a deletion, an addition
and a formatting change. When you click the button to move to the next
Revision, Word sometimes obviously doesn't quite know where to go. It will
stop (and, say, accept) more revisions than Word reports are in the
document. Any complexity (tables, frames, footnotes etc) add to Word's
confusion.
The second problem is that any construction of the type
For Each oRev in myDoc.Revisions
'whatever
Next oRev
will lead to a mess. That's because Word doesn't really seem to know how
many revisions are in the document until it actually deals with each one.
Depending on what you're trying to do, always work with .Revisions(1) or use
a counter. If you're accepting or deleting revisions, work backwards through
the document.
If you want to accept all the revisions made by a particular author, then
use the built in tools: display only the revisions made by that author, and
then use AcceptAllRevisionsShown. See the VBA Help for
AcceptAllRevisionsShown for some sample code. (Of course when you start to
do that, you'll realize what's wrong with the Reviewers collection<g>.)
Hope this helps.
Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word