title: Reference a folder by name
body: <p>I need to get a folder by name, not by folder number counts.  I tried getting with various methods.</p>
  
  <pre><code>Dim olApp As Outlook.Application
  Dim objNS As Outlook.NameSpace
  'Dim OlFolder As Outlook.MAPIFolder
  Dim objFolder As Outlook.Folder
  Dim myolItems As Outlook.Items
  Set olApp = Outlook.Application
  Set objNS = olApp.GetNamespace("MAPI")
  'Set myOlItems = objNS.GetDefaultFolder(37).Folders("Vijay Baswal").Items
  'Open the folder
  Set objFolder = olApp.Session.GetDefaultFolder("Vijay Baswal")
  </code></pre>