Closing Excel from Access

  • Thread starter Thread starter G Ramon
  • Start date Start date
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
 
Back
Top