bmn
03-02-2005, 10:44 AM
Please use the vb vb tags with your code
hi,
I'm wondering what methods i need in order to completely close down an excel process.
I've successfully opened excel, created a chart and saved it however I am unsure which methods to call to
close it.
Here's the initialisation code:
Dim xlApp As Excel.Application
Set xlApp = New Excel.Application
Dim xlWkb As Excel.Workbook
Set xlWkb = xlApp.Workbooks.Add
Dim xlSht As Excel.Worksheet
Set xlSht = xlWkb.Worksheets(1)
Dim xlChart As Excel.Chart
and here's the process close methods im using at the moment.
Call xlWkb.Close
Call xlApp.Quit
Set xlApp = Nothing
so, basically, what I'm wondering is should I be calling any other methods too.
After exiting my VB app I stills ee one EXCEL.EXE process in my task manager so I know I'm not closing it
down fully,
Any help much appreciated!
hi,
I'm wondering what methods i need in order to completely close down an excel process.
I've successfully opened excel, created a chart and saved it however I am unsure which methods to call to
close it.
Here's the initialisation code:
Dim xlApp As Excel.Application
Set xlApp = New Excel.Application
Dim xlWkb As Excel.Workbook
Set xlWkb = xlApp.Workbooks.Add
Dim xlSht As Excel.Worksheet
Set xlSht = xlWkb.Worksheets(1)
Dim xlChart As Excel.Chart
and here's the process close methods im using at the moment.
Call xlWkb.Close
Call xlApp.Quit
Set xlApp = Nothing
so, basically, what I'm wondering is should I be calling any other methods too.
After exiting my VB app I stills ee one EXCEL.EXE process in my task manager so I know I'm not closing it
down fully,
Any help much appreciated!