Ok, this correctly iterates through them all:
What is the "something" i should put here? It wantes type "reference" there but replacing SOMETHING with a.References.Item(x) doesn't workCode:x = 1 For Each myref In a.References If a.References.Item(x).IsBroken = True Then a.References.Remove (SOMETHING) Else Debug.Print a.References.Item(x).FullPath End If x = x + 1 Next myref
Maybe try this.
Code:
x = 1
For x = 1 to a.References.Count
If a.References.Item(x).IsBroken = True Then
set myref = a.References(x)
a.References.Remove (myref)
Else
Debug.Print a.References.Item(x).FullPath
End If
Next x