10-06-2022
06:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-06-2022
06:56 AM
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.
Blog: hjalte.nl - github.com