View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Inbar Inbar is offline
external usenet poster
 
Posts: 15
Default Excel Won't Quit

Just do Application.Quit (without the XL object) and it will quit.

"Rex" wrote:

After running this code, Excel remains:
Dim XL As Excel.Application
Set XL = CreateObject("Excel.Application")
XL.Workbooks.Open "C:\TEMP\AnyOld.XLS"
XL.Workbooks.Item(1).Close False
XL.Quit
Set XL = Nothing
Also tried .Close True and tried omitting .Close call.

What am I missing?
Rex