I have a VBA running in outlook 2010 where it asks for a mailbox (to search from).
This code was originally set up so that the user can select ANY mailbox to start searching in, however, I only need it to always start in the normal "Inbox".
I have tried everything, but I can't seem to get it. It presents me with a dialog box (which I will always just pick the Inbox) and the code proceeds without any problems.
'Set the start folder under which it will search
'*********I don't know how to set it automatically to INBOX
Set F = Application.Session.PickFolder
If Not F Is Nothing Then
Set Folders = F.Folders
DaFolder = Mid(F.FolderPath, 3)
What can I change the line
Set F = Application.Session.PickFo
with so that it has automatically assigned the "Inbox" to F?