Public Function OpenMacroFromExcel()
Dim xlApp As Excel.Application
Dim xlWB As Excel.Workbook
Set xlApp = New Excel.Application
With xlApp
.Visible = True
Set xlWB = .Workbooks.Open("C:\My Documents\Test.xls")
End With
xlWB.Application.Run "TestProc"
Set xlWB = Nothing
Set xlApp = Nothing
End Function
erodjob said:Is "TestProc" the name of the excel macro?