Hi Michael
Thanks for your reply. I tried:
Set f=Application.GetNamespace("MAPI").GetDefaultFolder(olFolderCalendar)
With Application.ActiveExplorer
Set .CurrentFolder = f ' switches to
Calendar
.CurrentView = "Day/Week/Month" ' sets view
.CommandBars.FindControl(, 1096).Execute ' clicks the button
End With
This should, I had hoped, switch to 'Calendar', Set 'Day/week/Month' view
and execute the 'Month' button.
If I start off in 'Inbox' the code will switch to 'Calendar' view only
(after the macro is executed). The other two commands are seemingly not
executed
If I start off in any 'Calender' view (or step through the macro) everything
works.
Thanks