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

John.McLaughlin

Board Regular
Joined
Jul 19, 2011
Messages
169
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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,214,935
Messages
6,122,337
Members
449,077
Latest member
Jocksteriom

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
Back
Top