title: Open email in specific folder
body: <p>I'm having issues accessing emails in a specific folder within Outlook.</p>
  
  <p>When I put the emails in the Inbox, the following line of code works.</p>
  
  <pre><code>Set OtlkApp = GetObject(, "Outlook.application")
  Set ns = OtlkApp.GetNamespace("MAPI")
  Set fldr = ns.GetDefaultFolder(olFolderInbox)
  </code></pre>
  
  <p>However, when I try to access a folder called "tempfiles", it could not find the object when I tried opening it using this code.</p>
  
  <pre><code>Set fldr = ns.Folders("tempfiles")
  </code></pre>
  
  <p>Is the syntax correct? Am I missing something?</p>