MS Word Support >> Infinite loop when using track changes

by RnJ1c3RyYXRlZCBWQkFlcg » Sat, 19 Sep 2009 10:17:08 GMT

I have been unable to find this problem with Word 2003 documented anywhere.

I have written a VBA macro to iterate thorugh the complete set of tracked
changes in a Revisions collection of a document. There are 405 changes in
this document. At some point while stepping through the collection via a
For..Next loop, a deleted Revision object is encountered. Then the previous
2 revisions plus the "deleted" revision are repeated (apparently) infinitely
in the Revisions collection. The indexes of the 3 repeated changes iterate
(63, 64, 65) even though they apparenlty occupy successive positions in the
collection. Obviously, pointers are going awry somewhere within the
Revisions collection.

If you step through the tracked changes using the Word toolbar, the same
thing happens. When you get to the area where the "deleted" Revision/change
object is located, Word appears to hang at the same change forever (the 2
changes prior to the deleted object are in the same table cell).

Anybody have ideas or can anybody point me to potential bug fixes?


Similar Threads

1. Help on .NET Word Object Library Range Find.Execute infinite Loop - CSharp/C#

2. Infinite loop

Hi. In every one of my office programs, when I hit the help icon (or from the 
menu), the program tries to access the internet, but goes into an infinte 
loop. the only way out is to reboot. Happens in Word, Excel, publisher, etc. 
Any advice?

3. Infinite loop in Groove 3.1 - Microsoft Office

4. Infinite Loop Problem

I had a professor contact me today about a problem he was having with a word 
document. For some reason he entered something then hit enter and a character 
Y with two little dots just started appearing on the screen. He managed to 
close word down but now when ever you open up this document it sits in an 
infinite loop and locks word.

I was wondering if there is any tool available to analyze this file to see 
if it can be fixed. If someone wants a copy of the file to check out the 
problem please ask.

Eric

5. infinite loop in winword.exe - Microsoft Word

6. StrReverse() function - infinite loop

I have just started program with Word 2002
While trying to reverse each word in a line of text encountered a 
problem: Word enters an infinite loop and stops responding.
Could somebody explain why?
Code:
---------------
Sub TestReverseWords()
Dim myRange As Range
Dim aWord As Object
Set myRange = ActiveDocument.Range(Start:=0, End:=Selection.End)
For Each aWord In myRange.Words
     aWord.Text = StrReverse(aWord.Text)
Next aWord
End Sub
--------------
end code

Thanks in advance.
Mike

7. Macro stuck in infinite Dir loop - Word VBA

8. replace header text: get section data in header to halt infinite loop VBA

VBA macro, which replaces header text when recorded, does
NOT replace header text when called.

I then forced macro into header and it replaces fine, but 
the ActiveWindow.ActivePane.View.NextHeaderFooter goes into
an infinite loop.  

Tried getting section number using old WordBasic command
(SelInfo(2)), as well as page number (SelInfo(3))
NewPg = WordBasic.SelInfo(3)
then compairing "NewPg" with prior page variable "OldPg".

Variables don't seem to fill.

Any suggestions appreciated.  THANK YOU.