W
Wanda
We can call up an appointment with code, but how do we
invoke the "invite attendees" function so we can add in an
address? Here is the code we were working with. We
receive no errors, but it does not invoke the TO field.
Thanks. Wanda
**************
Sub cmdAppInvite_Click()
Dim objNewAppointment
Dim objCustomForm3
Dim objCustomForm1
Set objNewAppointment = Application.CreateItem(1)
Set objCustomForm3 = Item.GetInspector.ModifiedFormPages
("3 Week").Controls
Set objCustomForm1 = Item.GetInspector.ModifiedFormPages
("Basic Info").Controls
With objNewAppointment
Item.Recipients.Add("(e-mail address removed)")
.Subject = objCustomForm3("txtZEN3")
.Body = "How are you today?"
objNewAppointment.Display
Set objNewAppointment = Nothing
Set objCustomForm1 = Nothing
Set objCustomForm3 = Nothing
End With
End Sub
invoke the "invite attendees" function so we can add in an
address? Here is the code we were working with. We
receive no errors, but it does not invoke the TO field.
Thanks. Wanda
**************
Sub cmdAppInvite_Click()
Dim objNewAppointment
Dim objCustomForm3
Dim objCustomForm1
Set objNewAppointment = Application.CreateItem(1)
Set objCustomForm3 = Item.GetInspector.ModifiedFormPages
("3 Week").Controls
Set objCustomForm1 = Item.GetInspector.ModifiedFormPages
("Basic Info").Controls
With objNewAppointment
Item.Recipients.Add("(e-mail address removed)")
.Subject = objCustomForm3("txtZEN3")
.Body = "How are you today?"
objNewAppointment.Display
Set objNewAppointment = Nothing
Set objCustomForm1 = Nothing
Set objCustomForm3 = Nothing
End With
End Sub