Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
insomnix
in reply to: insomnix

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