Hi,
I have the following code in an access module:
Sub Run_Excel_Macro()
Dim xls, xlWB As Object
Dim strFile, strMacro As String
strFile = "DIP_CTR.xls"
strMacro = "DIP_CTR"
Set xls = CreateObject("Excel.Application")
Set xlWB = xls.workbooks.Open("G:\Hris\Rachel\DIP STUFF\" &
strFile)
xls.Visible = True
'Run Macro
xls.Run strMacro
Set xls = Nothing
Set xlWB = Nothing
End Sub
The excel workbook opens and the macro runs, then i get a runtime error
in access "run error 440" automation error
Any ideas - many thanks
Flick. x