VBA Copy excel range to outlook's rich text format appointment body?

John.McLaughlin

Board Regular
Joined
Jul 19, 2011
Messages
166
Hello,

It seems the Outlook Appointment Body is Rich Text Format, not HTML. How can I paste an excel range into the RTF appointment body?

The code below will paste a single cell value, but I am lost converting the range to RTF, or finding a work around.

Thanks in advance,

JM

Code:
Sub OutlookAppointment()
'
' OutlookAppointment Macro
'
    Application.ReferenceStyle = xlA1
    Dim olApp As Outlook.Application
    Dim olApt As AppointmentItem
‘    Dim Sendrng As Range
       
    Set olApp = New Outlook.Application
    Set olApt = olApp.CreateItem(olAppointmentItem)
    Set Sendrng = Worksheets("SUMMARY").Range("A15:F20")
 
    With olApt
        .Start = Worksheets("ORDER").Range("B16").Value
        .Subject = Worksheets("SUMMARY").Range("J2").Value
        .Location = Worksheets("SUMMARY").Range("J3").Value
        .Categories = "ADMIN"
'       .Body = Sendrng
        .Body = Worksheets("ORDER").Range("B3").Value
        .BusyStatus = olBusy
        .ReminderMinutesBeforeStart = 120
        .ReminderSet = True
        .Save
    End With
 
    Set olApt = Nothing
    Set olApp = Nothing
 
 
'
End Sub
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,190,856
Messages
5,983,242
Members
439,833
Latest member
CDaviess

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top