S
-=Sojourn=-
I had this code to switch my view every hour to the Outlook main screen;
but it no longer works /w Outlook 2003 - can anyone help?
Thanks in advance!
Dim iHour
Private Sub SwitchView()
If Hour(Now) <> iHour Then
Dim ctl As Office.CommandBarControl
Dim cbpop As Office.CommandBarPopup
Dim cb As Office.CommandBar
Set cb = Application.ActiveExplorer.CommandBars("Menu Bar")
Set ctl = cb.FindControl(ID:=5599, Recursive:=True)
ctl.Execute
iHour = Hour(Now)
Set ctl = Nothing
Set cb = Nothing
End If
End Sub
but it no longer works /w Outlook 2003 - can anyone help?
Thanks in advance!
Dim iHour
Private Sub SwitchView()
If Hour(Now) <> iHour Then
Dim ctl As Office.CommandBarControl
Dim cbpop As Office.CommandBarPopup
Dim cb As Office.CommandBar
Set cb = Application.ActiveExplorer.CommandBars("Menu Bar")
Set ctl = cb.FindControl(ID:=5599, Recursive:=True)
ctl.Execute
iHour = Hour(Now)
Set ctl = Nothing
Set cb = Nothing
End If
End Sub