G
Guest
I'm trying to write some code that will automatically close the folder list
when I select the Calendar folder/view, and then show it again when I select
something other than my Calendar. Here is what I have so far based on what
I've found in VB help and this board:
Dim myOlApp As Outlook.Application
Public WithEvents myOlExp As Outlook.Explorer
Public Sub Initialize_Handler()
Set myOlExp = myOlApp.ActiveExplorer
End Sub
Private Sub myOlExp_FolderSwitch()
Select Case myOlExp.CurrentFolder.Name
Case "Calendar"
myOlExp.ShowPane olFolderList, False
Case Else
myOlExp.ShowPane olFolderList, True
End Select
End Sub
It appears I've followed all the instructions given (granted, that's not
much), but I still cannot get this to work. Any help would be greatly
appreciated.
Thanks!
when I select the Calendar folder/view, and then show it again when I select
something other than my Calendar. Here is what I have so far based on what
I've found in VB help and this board:
Dim myOlApp As Outlook.Application
Public WithEvents myOlExp As Outlook.Explorer
Public Sub Initialize_Handler()
Set myOlExp = myOlApp.ActiveExplorer
End Sub
Private Sub myOlExp_FolderSwitch()
Select Case myOlExp.CurrentFolder.Name
Case "Calendar"
myOlExp.ShowPane olFolderList, False
Case Else
myOlExp.ShowPane olFolderList, True
End Select
End Sub
It appears I've followed all the instructions given (granted, that's not
much), but I still cannot get this to work. Any help would be greatly
appreciated.
Thanks!