Skip to content

Instantly share code, notes, and snippets.

@tdalon
Last active July 24, 2026 09:10
Show Gist options
  • Select an option

  • Save tdalon/e8a1ad22eacd63ee95730399189bafe2 to your computer and use it in GitHub Desktop.

Select an option

Save tdalon/e8a1ad22eacd63ee95730399189bafe2 to your computer and use it in GitHub Desktop.
Outlook VBA to copy/duplicate a Meeting
Sub Duplicate()
Dim Item As Object
Set Item = GetCurrentItem()
If Item Is Nothing Then
MsgBox "No Item selected"
Exit Sub
End If
If Not TypeOf Item Is Outlook.AppointmentItem Then
MsgBox "Selected item is not an appointment/meeting.", vbExclamation
Exit Sub
End If
Dim appt As Outlook.AppointmentItem
Set appt = Item.Copy
If Not appt.ReminderSet Then
appt.ReminderSet = True
appt.ReminderMinutesBeforeStart = 15
End If
appt.Display
End Sub
Function GetCurrentItem() As Object
Dim objApp As Outlook.Application
Set objApp = Application
On Error Resume Next
Select Case TypeName(objApp.ActiveWindow)
Case "Explorer"
Set GetCurrentItem = objApp.ActiveExplorer.Selection.Item(1)
Case "Inspector"
Set GetCurrentItem = objApp.ActiveInspector.CurrentItem
End Select
Set objApp = Nothing
End Function
@tdalon

tdalon commented Nov 12, 2024

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment