M
MUSIWA
What is the correct syntax to send the message in out look through VBA
object.send cause a syntax error in my computer
Set OutProg = CreateObject("outlook.application")
Set OutM = OutProg.CreateItem(olitemType.olmailitem)
With OutM
.subject = "I am trying"
.To = "My email address"
.body = "Here we go"
.Importance = Outlook.OlImportance.olImportanceNormal
MsgBox " done"
End With
OutM.Send() (syntax error here and am not sure why ????)
Exit Sub
object.send cause a syntax error in my computer
Set OutProg = CreateObject("outlook.application")
Set OutM = OutProg.CreateItem(olitemType.olmailitem)
With OutM
.subject = "I am trying"
.To = "My email address"
.body = "Here we go"
.Importance = Outlook.OlImportance.olImportanceNormal
MsgBox " done"
End With
OutM.Send() (syntax error here and am not sure why ????)
Exit Sub