D
David
I'm new to Outlook VBA, but was able to cobble this together.
After entering data in a reoccuring Appointment, I want to email the
results to the boss.
Sub EmailInspResult()
Dim NewMail As Outlook.MailItem
Dim Appt As Outlook.AppointmentItem
Set Sel = Application.ActiveExplorer.Selection
For I = 1 To Sel.Count
If Sel.Item(I).Class = olAppointment Then
Set Appt = Sel.Item(I)
Set NewMail = ThisOutlookSession.CreateItem(olMailItem)
NewMail.To = "(e-mail address removed)"
NewMail.Subject = Appt.Subject
NewMail.Body = Appt.Body
NewMail.Display
End If
Next
End Sub
Problem is, the Appt.Body field is always blank even though I know
there's information is the Appointment body area.
I've made sure to save the appt after making any changes, but it's
always empty.
Any help would be appreciated.
David
After entering data in a reoccuring Appointment, I want to email the
results to the boss.
Sub EmailInspResult()
Dim NewMail As Outlook.MailItem
Dim Appt As Outlook.AppointmentItem
Set Sel = Application.ActiveExplorer.Selection
For I = 1 To Sel.Count
If Sel.Item(I).Class = olAppointment Then
Set Appt = Sel.Item(I)
Set NewMail = ThisOutlookSession.CreateItem(olMailItem)
NewMail.To = "(e-mail address removed)"
NewMail.Subject = Appt.Subject
NewMail.Body = Appt.Body
NewMail.Display
End If
Next
End Sub
Problem is, the Appt.Body field is always blank even though I know
there's information is the Appointment body area.
I've made sure to save the appt after making any changes, but it's
always empty.
Any help would be appreciated.
David