Named ObjectsAlthough you can usually specify an integer value with the Item method, it may be more convenient to return an object by name. The following example switches the focus to a document named Sales.doc.
Documents("Sales.doc").Activate
You know the file name from opening, so when it doesn't return a valid Document object, that would indicate it's closed. Eh... in theory :)
/J
In reply to Re^3: Word Documents->Count in Win32
by jplindstrom
in thread Word Documents->Count in Win32
by esr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |