title: Using visual basic to access subfolder in Inbox?
body: <pre><code>Dim olApp As Outlook.Application
  Dim objNS As Outlook.NameSpace
  Set olApp = Outlook.Application
  Set objNS = olApp.GetNamespace("MAPI")
  Set myOlItems = objNS.GetDefaultFolder(olFolderInbox).Items
  </code></pre>
  
  <p>I have used the code above to access the main outlook Inbox but how to access the folders in inbox and it's mail using vba!</p>