Little help please I keep trying this code to open the STATECODE.xlsm file and I do have the Microsoft Excel 16.0 object library selected for tools. If it change the name of the file to any other file it seems to work to include other xlsm.
Option Compare Database
Function OpenExcelFromAccess()
Dim Myxl As Object
Set Myxl = CreateObject("Excel.Application")
With Myxl
.Application.Visible = True
.Workbooks.Open "H:\STATECODE.xlsm"
End With
End Function
Option Compare Database
Function OpenExcelFromAccess()
Dim Myxl As Object
Set Myxl = CreateObject("Excel.Application")
With Myxl
.Application.Visible = True
.Workbooks.Open "H:\STATECODE.xlsm"
End With
End Function