Execute the Send Action on the Outlook Appointments item/form

K

koms16

hi all,

I am trying to automatically send an Appoinment and have been able to
use the following code
I want to Push the send button on the item/form automatically, i am
not talking about the Send/Receive button .

With objAppt

.Recipients.ResolveAll()
.Close(Outlook.OlInspectorClose.olSave)
.Display()
.Subject = strSubject
.Resources = strAResource
.MeetingStatus = Outlook.OlMeetingStatus.olMeeting
.Subject = strSubject
.Location = strLocation
.Start = strBTime
.End = strETime
.Body = MapiBodyText
'This is the line that i want to try and change
.GetInspector.CommandBars.Item("Menu
Bar").Controls("File").Controls("Print...").Execute()

.send()

End With

the above code works perfectly and i wish to actually automate the
Send of this item.
I have tried to use --

..GetInspector.CommandBars.Item("Menu
Bar").Controls("File").Controls("Send").Execute()

but get an "Uknown Error", as i can see that Send is not really a
function of an Appointment Item.

Any help here would be appreciated !!!

thanks,
koms
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top