Code: Select all
Dim Folder As Outlook.Folder
'MsgBox Application.Session.Folders("TS_Gmail").Folders("Inbox") 'Msgbox returns the variable. In this case "InBox"
Set Folder = Application.Session.Folders("TS_Gmail").Folders("Inbox") 'Code fails here