01-20-2021
04:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-20-2021
04:06 PM
The DocumentsEnumerator Object can't be set to a single document from an open part file. You could use the Application.Documents.VisibleDocuments, but you would then have to remove those you don't want if more than 1 document is open.
Alternatively, if you use an ObjectCollection Object , then you could fill it with AllReferencedDocuments from assembly files or with the "odoc" by itself if it is a part.