I am trying to move emails from the inbox in a secondary Outlook account to a sub-folder in that account.
Sub newBox()
Dim myInbox As Outlook.Folder
Dim myDestFolder As Outlook.Folder
Dim myItems As Outlook.Items
Dim myItem As Object
Dim i As Integer
Set myInbox = Session.Folders("Secondary").Folders("Inbox")
Set myDestFolder = myInbox.Parent.Folders("Complete")
End Sub
When I try to set the destination, myDestFolder, I get
Run-Time error, An object could not be found.