It it possible to execute (run) this part of my macro in the background, so the Outlook Appointment window doesn't show?
When I delete the " olAppt.Display ", it doesnt add the Selection to the body of the appointment anymore.
When I delete the " olAppt.Display ", it doesnt add the Selection to the body of the appointment anymore.
Code:
Set olAppt = Outlook.Application.CreateItem(olAppointmentItem)
olAppt.Display
Set Selection = olAppt.GetInspector.WordEditor.Windows(1).Selection
Selection.TypeText ("Call: " & Blad1.Cells(r, 15).Value & " about (" & Blad1.Cells(r, 3).Value & ").")
Selection.TypeText (vbNewLine & vbNewLine)
Selection.TypeText ("and: " & Blad1.Cells(r, 23).Value & ".")
Selection.TypeText (vbNewLine & vbNewLine)
Selection.TypeText (Blad1.Cells(r, 11).Value & " - " & Blad1.Cells(r, 22).Value)