Hey people! I gotta small and relatively easy thing for ya to figure out. I'm trying to open an excel file, import information from a database for calculations and then import the results to my current database. I can work out the database import/export but the code I'm using just seems to lock up. Below is my code for the 2000 automation:
*************************************************************
Function UpdateRatio()
Dim XL As Excel.Application
Set XL = New Excel.Application
XL.Workbooks.Open "workbookpath.xls"
XL.Run "Macro2"
XL.Workbooks("wrkbook name".Close -1
Excel.Application.Quit
End Function
**************************************************************
Any ideas on how I can get this to work?
Thanks!
Jay
*************************************************************
Function UpdateRatio()
Dim XL As Excel.Application
Set XL = New Excel.Application
XL.Workbooks.Open "workbookpath.xls"
XL.Run "Macro2"
XL.Workbooks("wrkbook name".Close -1
Excel.Application.Quit
End Function
**************************************************************
Any ideas on how I can get this to work?
Thanks!
Jay