Hi I want to send mail from excel . for which below code works fine. am looking to midify this to ..
1] I want to copy data from excel & paste in Lotus Body
2} I want to send mail with attachment.
Private Sub CommandButton1_Click()
Dim s As Object
Dim db As Object
Dim doc As Object
Dim nSession
Set us1 = Range("g6:i24")
Set s = CreateObject("Notes.NotesSession")
Set db = s.GetDatabase(" ", "mail\username.nsf")
Set doc = db.createdocument()
doc.form = "Memo"
doc.sendTo = "noname@noname.com"
doc.Subject = " Sending Mail from EXCEL MACRO"
doc.body = us1 '" Hi Pranali Sending Mail from EXCEL MACRO"
Call doc.Send(False)
Set nSession = Nothing
End Sub
Bookmarks