Bug? Incorrect Revision object returned from range.

M

Mike Grasso

Hi! I think I have stumbled accross a bug. I've been able to reproduce this
pretty constistantly.

1) Type the sentence "here are some words"
2) Turn on Track Changes
3) Type the word "one" directly before the word "some"
4) Type the word "two" directly after the word "some"

At this point you should have "onewordtwo" with "one" and "two" in red text.

5) Highlight the letters "wo" in "two".
6) Open up the Immediate windows and type
?Selection.Range.Revisions.Item(1).Index
The result is 1, when it should be 2. (The range of the returned revision
object also corresponds with the revision object for "one")

7) Collapse the cursor so it is between the "w" and "o". The same command
yields the correct revision: 2

Just thought you'd like to know.
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?TWlrZSBHcmFzc28=?=,
Just thought you'd like to know.
I'll pass this along. My guess would be that the
"end-of-word" flag is mixing into what VBA is "seeing". If
I select tw or the entire two, I do get the correct result.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 
Top