View Single Post
 
Old 04-04-2021, 08:53 PM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,103
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

That's simple enough. I demonstrated how to access the body of the appointment in my reply to your barcode issue.
Code:
Sub CopyItem()
'Graham Mayor - https://www.gmayor.com - Last updated - 05 Apr 2021 
Dim olApptCopy As Outlook.AppointmentItem
Dim objItem As Object
Dim olInsp As Outlook.Inspector
Dim wdDoc As Object
Dim oRng As Object

    On Error Resume Next
    Select Case Outlook.Application.ActiveWindow.Class
        Case olInspector
            Set objItem = ActiveInspector.currentItem
        Case olExplorer
            Set objItem = Application.ActiveExplorer.Selection.Item(1)
    End Select
    Set olApptCopy = Outlook.CreateItem(olAppointmentItem)

    'Copy the desired details to a new appointment item
    If objItem.Class = olAppointment Then

        With olApptCopy
            .Subject = objItem.Subject
            .Location = objItem.Location
            .Body = objItem.Body
            .Categories = objItem.Categories
            .AllDayEvent = objItem.AllDayEvent
            Set olInsp = .GetInspector
            Set wdDoc = olInsp.WordEditor
            Set oRng = wdDoc.Range
            'set font for the body text
            oRng.Font.Name = "Times New Roman"
            oRng.Font.Size = "14"
            .Display
        End With
    End If
    Set olApptCopy = Nothing
    Set objItem = Nothing
    Set olInsp = Nothing
    Set wdDoc = Nothing
    Set oRng = Nothing
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote