A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook.Send



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old February 10th 09, 07:07 PM posted to microsoft.public.outlook.program_vba
MUSIWA
external usenet poster
 
Posts: 6
Default Outlook.Send

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

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 2003...SEND problem...does not send the 1st time CJ Outlook - General Queries 1 September 14th 08 05:13 AM
I can't send attachments with outlook, I can send test email Harm Logan Outlook - General Queries 5 March 21st 07 06:51 PM
outlook 2003 has 2 "send" labels in the send receive drop down oceanfreightrefunds Outlook - General Queries 1 February 14th 07 09:24 PM
Some items can't be send in outlook 2003. Even after repeatly clicking the send button. baarts Outlook - General Queries 1 August 9th 06 02:52 PM
Can't send via outlook 2003 or outlook express 6, but can send to newsgroups ~AMDT~ Outlook - General Queries 5 March 29th 06 10:31 AM


All times are GMT +1. The time now is 05:12 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.