11-07-2018
09:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
11-07-2018
09:54 AM
I was completely wrong about where I thought the problem was. When I looked at this fresh this morning I noticed that the oPartDoc is referencing "ThisApplication.ActiveDocument". In my assembly I am passing variables to the part file, executing code in that part file, but it is not the active document, my assembly file is. Changing oPartDoc to "ThisDoc.Document" fixed the problem and all is good.
Dim oPartDoc As PartDocument oPartDoc = ThisDoc.Document 'ThisApplication.ActiveDocument