Document(#) vs Document("Name") 
Author Message
 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


> 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

Sat, 20 Nov 2004 04:15:25 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Document(#) vs Document("Name")

2. Re-naming "My Documents"

3. "document name or path is invalid"

4. Document name includes "- for merge"

5. Documents in "Activities" tab

6. Opinions "MS Office Document Imaging"?

7. Change location of "My Documents"

8. "Document Not Saved" - Microsoft Warning Message

9. path to "My Documents"

10. ExecuteExcel4Macro("GET.DOCUMENT(50)");Count Page

Powered by phpBB® Forum Software © phpBB Group