Hello,
I want to send a message but when i tried to send i got an error message so anyone can tell me the correct syntax to send the message in out look through VBA.
I m using this code for sending.
object.send cause a syntax error in my computer
Code: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
Code:OutM.Send If you want to use the parentheses use this: Call OutM.Send()
ExlGuru
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks