I'm doing a macro in Excel which is used to send a meeting with Outlook, everything works fine but in the body of the message I want the text to be formatted, for example to put the text of colors, with bold, etc. Which I have not yet achieved, I share my code so they can help me.
Sub EnvioConvocatoriaT()
Dim ol As New Outlook.Application
Dim ns As Outlook.Namespace
Dim itmApoint As Outlook.AppointmentItem
Set ns = ol.GetNamespace("MAPI")
Set itmApoint = ol.CreateItem(olAppointmentItem)
With itmApoint
.Start = DateSerial(2017, 8, 11) + TimeSerial(14, 0, 0)
.End = DateSerial(2017, 8, 11) + TimeSerial(16, 0, 0)
.Subject = "Correo de prueba"
.Body = "Este es un correo de prueba"
.Importance = olImportanceNormal
.Recipients.Add ("[email protected]")
.MeetingStatus = olMeeting
.Location = "Local Lima - 01"
.ReminderSet = True
.ReminderMinutesBeforeStart = 5
.Save
'.Send
End With
End Sub