Ken,
I finished the code to do this, but, I was only testing it on today's date,
when I set my system date to say (8/22/2008), that date is scrolled off of
the screen showing the whole month of September. Is there a way to keep
whatever date is specified with the (CurrentView.GoToDate) to be on the first
row of the calendar monthly view.
Am also posting the code, maybe I am not using the correct objects etc...
-----------------------------------------------------------------------------------------------
Dim WithEvents m_appExplorer As Explorer
Private Sub Application_Startup()
Set m_appExplorer = Application.ActiveExplorer
End Sub
Public Sub CalendarScrollProc()
Dim ol_CurrentView As Outlook.CalendarView
On Error Resume Next
Set ol_CurrentView = Application.ActiveExplorer.CurrentView
'Only want to run if current view is "Month"
If ol_CurrentView.CalendarViewMode = olCalendarViewMonth Then
ol_CurrentView.GoToDate DateAdd("d", 30, Date)
End If
End Sub
Private Sub m_appExplorer_ViewSwitch()
On Error Resume Next
If m_appExplorer.CurrentFolder = "Calendar" Then
CalendarScrollProc
End If
End Su
-----------------------------------------------------------------------------------------------
Thanks again for your help, I appreciate it.
Clift