Can anyone suggest a useful article / reference book which details how to open and close Excel worksheets from Access 97.
I have copied some code from the help text into my database, but I have two probblems. One I don't really understand what the code does, and I would like to understand what is happenning. Two, the code checks if Excel is running, if not it opens it, then (with my worksheet name included) it opens the file I require; but if Excel is open but without a blank sheet in the workspace, I get an error.

Openning Excel from Access 97
Frans Bouma - C# MVP
Per our support engineer:
Dim xlWbk As Excel.Workbook
' open excel, create excel application object
Set xlObj = CreateObject("Excel.Application")
' open your workbook
Set xlWbk = xlObj.Workbooks.Open("c:\1.xls")
Set xlWbk = Nothing
xlObj.Quit
Set xlObj = Nothing
http://msdn.microsoft.com/library/en-us/vbaxl11/html/xlobjWorkbook1_HV05205955.asp
-brenda (ISV Buddy Team)