B
Barry
Since I have users who use Office 2007 and Office 2003, I am attempting to
use late binding to open an Excel worksheet from MS Access. The worksheet I
am trying to open contains an autoexec macro.
I cannot get the code below to work.
Any assistance will be greatly appreciated.
Function Excel_Macro1()
Dim objExcel As Object
Set objExcel = CreateObject("Excel.Application")
objExcel.Workbooks.Open "K:\RM\Apps\Access\218Labor\Macro1.xls"
objExcel.Quit
Set objExcel = Nothing
End Function
use late binding to open an Excel worksheet from MS Access. The worksheet I
am trying to open contains an autoexec macro.
I cannot get the code below to work.
Any assistance will be greatly appreciated.
Function Excel_Macro1()
Dim objExcel As Object
Set objExcel = CreateObject("Excel.Application")
objExcel.Workbooks.Open "K:\RM\Apps\Access\218Labor\Macro1.xls"
objExcel.Quit
Set objExcel = Nothing
End Function