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

I don't test your code, but following line is really bad.

 

'Start a transaction for progress bar
Call ThisApplication.TransactionManager.StartTransaction(ThisDoc.Document, "Editing All Parts...")

 

 

Method StartTransaction returns Transaction object which !!!MUST BE CLOSED!!! in any way.

If you want to use transactions use the following pattern

 

Sub TransactionPatternSample()
    Dim document As Document
    Dim displayName As String

    Dim t As Transaction = ThisApplication.TransactionManager.StartTransaction(document, displayName)
    Try
        'Do something in transaction

        'Successful
        t.End()

    Catch ex As Exception
        'Log or handle exception

        'Failed
        t.Abort()
    End Try
End Sub

For more info see this article