I have been using Excel for reporting from MS Access from some time...my "MO" has been as follows:
I need to know now, though, how to use an instance of Excel that is already running. I tried
but I keep getting the "subscript of of range" error message.
Any suggestions?
Thanking you in advance,
Mike K
Code:
Sub mike()
Dim xlApp as New Excel.Application, xlWkb as Excel.Workbook
set xlWkb=xlApp.Workbooks.Open(myPath & myFile)
etc.
etc.
End Sub
I need to know now, though, how to use an instance of Excel that is already running. I tried
Code:
Sub mike()
Dim xlApp as Excel.Application, xlWkb as Excel.Workbook
set xlWkb=Excel.Application.Workbooks("AlreadyOpen.xls")
Msgbox xlWkb.Name
End Sub
but I keep getting the "subscript of of range" error message.
Any suggestions?
Thanking you in advance,
Mike K