title: How to refer to Excel objects in Access VBA?
body: <p>What declarations I have to make in order to be able to use Excel objects and constants from my Access 2007 VBA script?</p>
  <pre><code>Dim wb As Workbook
  </code></pre>
  <p>or</p>
  <pre><code>Set objExcelApp = New Excel.Application
  </code></pre>
  <p>or</p>
  <pre><code>.Borders(xlEdgeBottom)
  </code></pre>