How to reference the selected folder

Status
Not open for further replies.

Kovenna

New Member
Outlook version
Outlook 2010 64 bit
Email Account
Outlook.com (as MS Exchange)
I would like to move a selected mail item in the Inbox to a selected sub-folder of the Inbox. But I have no idea how to reference "active" or "Selected" folder. I can make a folder the selected folder (for example: Set ActiveExplorer.CurrentFolder = objCurFolder) but I cannot seem to find any sources explaining how to reference this folder once it is the "selected" folder.

Can anyone help?
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
This shows how to work twith the current item - Outlook VBA: Work with Open Item or Selected Item
current folder is similar.

Dim objOL As Outlook.Application
Set objOL = Outlook.Application
Set objFolder = objOL.ActiveExplorer.CurrentFolder
 
Status
Not open for further replies.
Top