title: Reference a folder not under the default inbox
body: <p>I've tried countless ways of deleting items from a custom folder called "Spam Digests" older than 14 days. I have successfully done this when I nest this folder underneath the <code>olDefaultFolder(Inbox)</code> but when I have it outside of the default inbox, I cannot reference it as I receive object not found.</p>
  
  <p>Here is what I have and I cannot seem to figure out why the object is not found when referencing <code>"fldSpamDigest"</code></p>
  
  <pre><code>    Dim outapp As Outlook.Application
      Set outapp = CreateObject("outlook.application")
      Dim olitem As Object
      Dim fldSpamDigest As Outlook.MAPIFolder
  
      Set fldSpamDigest = outapp.GetNamespace("MAPI").Folders("Spam Digests")
      For Each olitem In fldSpamDigest.Items
          If DateDiff("d", olitem.CreationTime, Now) &gt; 14 Then olitem.Delete
      Next
  
      Set fldSpamDigest = Nothing
      Set olitem = Nothing
      Set outapp = Nothing
  </code></pre>