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

In the case of that post, the main method would look like this. (with save and close)

 

Sub Main()
    Dim doc As AssemblyDocument = ThisDoc.Document

    Dim refDocNames As List(Of String) = getRefDocList(doc)

    For Each refDocName As String In refDocNames
        Dim refDoc As Document = getDocument(refDocName)

        ' Do the work on your document here
        MsgBox(refDoc.DisplayName)

        refDoc.Save() ' <--  look here
        refDoc.Close(True) ' <--  look here
    Next
End Sub

 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com