I recently switched to Outlook 2007 and noticed that my VBA-macros won't work. I use the following code to open a new appointment-item (and fill it automatically). It worked perfect in Outlook 2003, but now the objCB.Execute just does nothing. I tried different control IDs and it only works for some, but I could not figure out why or why not for all.
Dim ex As Explorer
Set ex = Application.ActiveExplorer
If ex.CurrentFolder.DefaultItemType <> olAppointmentItem Then
Set ex = Nothing
Exit Sub
End If
Dim objCB As CommandBarButton
Dim objAppt As AppointmentItem
Set objCB = ex.CommandBars.FindControl(, 1106)
If objCB Is Nothing Then Exit Sub
objCB.Execute
Security is set to lowest level.