ChrisAch
06-08-2016, 09:20 AM
Sub pre plan email()
Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
On Error Resume Next
' Change the mail address and subject in the macro before you run it.
With OutMail
.To = "To:Name"
.CC = "NameA;NameB"
.BCC = ""
.Subject = "Subject header"
.body = "Good morning," & vbCr & vbCr
Dim sMsgBody As String
sMsgBody = sMsgBody & "Please kindly...." & vbCr & vbCr
sMsgBody = sMsgBody & "......" & vbCr & vbCr
sMsgBody = sMsgBody & "Kind Regards"
.body = sMsgBody
.Display
End With
End Sub
Hi All
I used to use the above code and adapt to generate an email etc.
However in my new role they use 'cough' lotus notes 'cough'
I cannot for the life of me, work out how to use the above and adapt to lotus notes, I have tried to overwrite object with lotus notes, but did not work.
Does anyone have any ideas?
Also, linked ...
If I wanted to call up one of my stationary lotus notes emails, but NOT send, can anyone point me in the right direction?
Thank you
Dim OutApp As Object
Dim OutMail As Object
Set OutApp = CreateObject("Outlook.Application")
Set OutMail = OutApp.CreateItem(0)
On Error Resume Next
' Change the mail address and subject in the macro before you run it.
With OutMail
.To = "To:Name"
.CC = "NameA;NameB"
.BCC = ""
.Subject = "Subject header"
.body = "Good morning," & vbCr & vbCr
Dim sMsgBody As String
sMsgBody = sMsgBody & "Please kindly...." & vbCr & vbCr
sMsgBody = sMsgBody & "......" & vbCr & vbCr
sMsgBody = sMsgBody & "Kind Regards"
.body = sMsgBody
.Display
End With
End Sub
Hi All
I used to use the above code and adapt to generate an email etc.
However in my new role they use 'cough' lotus notes 'cough'
I cannot for the life of me, work out how to use the above and adapt to lotus notes, I have tried to overwrite object with lotus notes, but did not work.
Does anyone have any ideas?
Also, linked ...
If I wanted to call up one of my stationary lotus notes emails, but NOT send, can anyone point me in the right direction?
Thank you