
Document(#) vs Document("Name")
Hi Paul,
You can use the following:
For i = 1 To Documents.Count
If Documents(i).Name = "Test.doc" Then
MsgBox i
End If
Next i
HTH
Quote:
> You can refer to documents by either index number
> (Documents(3)) or name (Documents("Doc3.doc")). Given an
> index, I know how to figure out the document's name, but,
> given a name, how do you figure out the document's index
> number?
> Any thoughts?
> Thanks,
> Paul