The HTML document, available here, appears to break VBA - it will crash Word 2003 and Word 2010 appears to be behaving weird.
If you open the HTML document in Word, ALT+F11 in to the VBA editor, add a class and paste this code:
Sub Test()
Dim obj As Document
Set obj = Application.ActiveDocument
MsgBox (obj.Shapes.Count)
For Each a In obj.Shapes
MsgBox (a) 'THIS NEVER GETS HIT - w00t
Next
End Sub
Add a breakpoint on the second message box - it wont get hit.
This deosnt make sense. Bug in Word? Corrupt HTML?
InlineShapesin this way:For Each a in obj.InlineShapes. - Kazimierz Jaworpath="m@4@5l@4@11@9@11@9@5xe". Can you confirm where this html file is generated? - PatricKShape-objects in theShapescollection do not seem to be valid. If you try to access the individual objects (e.g.Debug.Print(obj.Shapes(1).Name)) you getinvalid procedure call or argument, but when you try an index value that doesn't exist, likeobj.Shapes(9).Nameyou getindex into the specified collection is out of bounds. - Olle Sjögren