title: Close specific Excel file opened by user from Access-VBA
body: <p>I see version of how to do this with </p>
  
  <pre><code>Dim ran as Excel.Applcation 
  </code></pre>
  
  <p>but the version of Access I am using doesn't have Excel.Application as an option.</p>
  
  <p>I have written the following code that runs, but does not close the file</p>
  
  <pre><code>Dim Path1 as String
  Dim objXL As Object
  Dim xlWB As Object
  Path1 = "C:/....."
  Set objXL = CreateObject("Excel.Application")
  Set xlWB = objXL.Workbooks.Open(Path1)
  
  
  xlWB.Close False
  Set xlWB = Nothing
  objXL.Quit
  Set objXL = Nothing
  </code></pre>