thegameoflife
Programmer
How do you run an Excel Macro form Access?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub EXL()
Dim XL As Object
Set XL = CreateObject("Excel.Application")
XL.Workbooks.Open "C:\Program Files\Office 2K\Office\XLStart\Personal.xls"
' If there is more than one macro called TestMacro,
' the module name would be required as in
'
' XL.Run "Module1.TestMacro"
'
' to differentiate which routine is being called.
'
XL.Run "Test"
End Sub