Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

exiting excell won't work!!!!

Status
Not open for further replies.

parkfairfax

Programmer
May 22, 2001
63
0
0
US
I am trying to exit excell from a Access application.

Using "Application.close " closes everything, I just want to close Excell.

Any ideas?

Thanks,

garry
 
How did you connect to Excel?

Through:

Dim xlApp as Excel.Application
Dim xlWBook as Excel.Workbook

Set xlWBook = GetObject("C:\File.xls")
Set xlApp = xlWBook.Parent

xlWBook.Save
xlWBook.Close
If xlApp.Workbooks.Count = 0 Then
xlApp.Quit
End If

Set xlWBook = Nothing
Set xlApp = Nothing


Let me know if this help...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top