I
intersection row and column
I try to run an Excel Macro from Access and I get the following error message :
Run-time error '1004'
The macro 'macros ARC.XLS!importer_from_Researchtool' cannot be found
any idea what the problem is ???
this is the code in VBA Access :
Dim xls As Object, xwkb As Object
Dim strFile As String, strMacro As String
strFile = "macros ARC.XLS"
Set xls = CreateObject("Excel.Application")
xls.Visible = True
Set xwkb = xls.Workbooks.Open(thePath & strFile)
strMacro = "importer_from_Researchtool"
xls.Run strFile & "!" & strMacro, theYear, week
Run-time error '1004'
The macro 'macros ARC.XLS!importer_from_Researchtool' cannot be found
any idea what the problem is ???
this is the code in VBA Access :
Dim xls As Object, xwkb As Object
Dim strFile As String, strMacro As String
strFile = "macros ARC.XLS"
Set xls = CreateObject("Excel.Application")
xls.Visible = True
Set xwkb = xls.Workbooks.Open(thePath & strFile)
strMacro = "importer_from_Researchtool"
xls.Run strFile & "!" & strMacro, theYear, week