1 out of 1 rated this helpful - Rate this topic

Explorer.CurrentFolder Property (Outlook)

Published: July 16, 2012

Returns or sets a Folder object that represents the current folder displayed in the explorer. Read/write.

expression .CurrentFolder

expression A variable that represents an Explorer object.

Use this property to change the folder the user is viewing.

This Visual Basic for Applications (VBA) example uses the CurrentFolder property to change the displayed folder to the user's Calendar folder.

Sub ChangeCurrentFolder() 
 
 Dim myNamespace As Outlook.NameSpace 
 
 
 
 Set myNamespace = Application.GetNamespace("MAPI") 
 
 Set Application.ActiveExplorer.CurrentFolder = _ 
 
 myNamespace.GetDefaultFolder(olFolderCalendar) 
 
End Sub
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.