J
J Lunis
XP SR2 / Word (Office) 2003
I have created a form in Word that calls Excel, retrieves some data, and
closes Excel. Well, actually, I guess I don't close Excel and that is
my problem.
The code I am using to open Excel is
Set filename = GetObject(, "Excel.Application")
Set filename = ("C:\Microsoft Office\Templates")
Closing Excel is attempted with
filename.Quit SaveChanges:=DoNotSaveChanges
Works OK, I get no errors and Excel disappears from the list of
Applications/Processes in Task Manager. However, when I shut down my
PC, I get a popup asking if I want to close filename.exe. How do I
close Excel so I no longer get the popup?
I have created a form in Word that calls Excel, retrieves some data, and
closes Excel. Well, actually, I guess I don't close Excel and that is
my problem.
The code I am using to open Excel is
Set filename = GetObject(, "Excel.Application")
Set filename = ("C:\Microsoft Office\Templates")
Closing Excel is attempted with
filename.Quit SaveChanges:=DoNotSaveChanges
Works OK, I get no errors and Excel disappears from the list of
Applications/Processes in Task Manager. However, when I shut down my
PC, I get a popup asking if I want to close filename.exe. How do I
close Excel so I no longer get the popup?