K
Kenneth Hutson
I wrote this code in VB2005 Express Beta. When the Sub ends, Excel still
shows as a running process in the Task Manager. How do I shut Excel down?
Thanks,
Kenneth Hutson
San Antonio, TX
shows as a running process in the Task Manager. How do I shut Excel down?
Thanks,
Kenneth Hutson
San Antonio, TX
Code:
Imports Microsoft.Office.Interop
Module DataSet2Excel
Sub startxl()
Dim xlapp As Excel.Application
Dim wb As Excel.Workbook
Dim ws As Excel.Worksheet
Dim r As Excel.Range
xlapp = New Excel.Application
xlapp.Visible = True
wb = xlapp.Workbooks.Add
ws = CType(wb.Worksheets.Add, Excel.Worksheet)
xlapp.Workbooks.Close()
xlapp.Quit()
End Sub