Hello,
Any idea why with this code the attachment is saved at the bottom of the document, instead in the rtf field
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim doc As NotesDocument
Dim rtitem As NotesRichTextItem
Dim object As NotesEmbeddedObject
Set uidoc = workspace.CurrentDocument
Set doc = uidoc.document
Dim CoApp As Variant
Set rtitem = New NotesRichTextItem( doc, "Body" )
CoApp = workspace.OpenFileDialog(False,"Please attach","","","")
Set object = rtitem.EmbedObject _
( EMBED_ATTACHMENT, "", CoApp(0))
uidoc.Document.ReplaceItemValue "Body", CoApp
Thanks!!!