Closing Excel from Access

G

G Ramon

Hallo

you need to tell Access which application to terminate

Dim Objeto As Object

Then tell that is an excel object
Set Objeto = GetObject(, Excell.Application)

Then terminate excel
Objeto.Application.Windows(1).Activate = False
Set Objeto = Nothing

hope it works
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top