VB6.0
The following is how I open the Excel file, what I need to know is how to see if it is already open, and also a new Sub to close the file.
Private Sub Command1_Click()
'Place statement here to see if already open, if so then Goto 1
Dim xlTemp As excel.Application
Set xlTemp = New excel.Application
xlTemp.Workbooks.Open "c:\Test.xls"
xlTemp.Visible = True
1
End Sub
Private Sub Command2_Click()
'This does not work
xlTemp = nothing
xlTemp.Quit
End Sub