Sub Click(Source As Button)
Dim ws As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Set uidoc = ws.CurrentDocument
filename = ws.OpenFileDialog( True, "Выберите файл(ы)")
Call uidoc.GotoField("Scan")
Call uidoc.Import("JPEG Image", Cstr(filename))
Call uidoc.GotoField("Atach")
Call uidoc.CreateObject("Quarterly Reports", filename)' аттачмент
End Sub