Sub Postsave(Source As Notesuidocument) Dim ws As New NotesUIWorkspace Dim session As New NotesSession Dim db As NotesDatabase Dim uidoc As NotesUIDocument Dim doc As NotesDocument Dim docCheck As NotesDocument Dim rtitem As Variant Dim sizeRT As Integer Set db = session.currentDatabase Set uidoc = ws.currentDocument Set doc = uidoc.document Set rtitem = doc.getfirstItem("rt") sizeRT = rtitem.valueLength If sizeRT > 100 Then doc.flag = "ja" Else doc.flag = "nein" End If Call doc.save(False, False) End Sub