A bug of the Revisions object?  
Author Message
ivco_sa





PostPosted: Top

MS Word VBA >> A bug of the Revisions object?

I found that the Revisions object sometimes returns wrong Revision objects
with a given item index. For example, try the following macro:
----------------------------
Sub TestRevision()

Dim Rev As Revision

Set Rev = Selection.Range.Revisions(1)
MsgBox "Revision: Type = " + Str(Rev.Type) + ", Range = " +
Str(Rev.Range.Start) + " - " + Str(Rev.Range.End)

End Sub
-------------------
Create two revisions in a document. Then select a part of the first revision
and run this macro. It is supposed to display information about the first
revision, but in fact it displays the second one. This problem occurs in Word
XP and 2003.

Word24