Message 1 of 3

Not applicable
07-16-2018
02:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have following sub that is suposed to execute some code once the file has been opened.
Private Sub oAppEvents_OnOpenDocument(DocumentObject As _Document, FullDocumentName As String, BeforeOrAfter As EventTimingEnum, Context As NameValueMap, ByRef HandlingCode As HandlingCodeEnum) Handles oAppEvents.OnOpenDocument 'fire after document Is Opened If BeforeOrAfter = EventTimingEnum.kAfter Then
The problem is that if I open an IAM then it is executed for every single part that makes up the assembly. I would like to have it executed only if the main IAM has finished loading. so basically the actual file I opened.
How can this be done?
Thanks
Solved! Go to Solution.