Ich habe folgenden Code, den ich gerne in @Formel abgebildet haben möchte.
Geht das ?
Dim uiws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim session As New NotesSession
Dim doc As NotesDocument
Set uidoc = uiws.CurrentDocument
Set doc = uidoc.Document
Dim obj As NotesEmbeddedObject
Dim rti As NotesRichTextItem
OCXREG$ = "C:\TEMP\001.txt"
If uidoc.IsNewDoc Then
If DoesFileExists ( OCXREG$ ) > 0 Then
Set rti = New NotesRichTextItem( doc, "Body" )
Set obj = rti.EmbedObject(EMBED_ATTACHMENT, "TEST", OCXREG$)
Call doc.save (True,True)
End If
End If