Lars Brownie said:
Mike,
My experience is, that followhyperlink is slower than using the explicit
Excel reference. Maybe worth while to check it out.
Dim appExcel As Excel.Application
Dim myWorkbook As Excel.Workbook
Set appExcel = CreateObject("Excel.Application")
Set myWorkbook = appExcel.Workbooks.Open("C:\YourFile.xls")
appExcel.Visible = True
Set appExcel = Nothing
Set myWorkbook = Nothing
I've never compared the two approaches for speed, so you could be right. I
would recommend, though, that when taking that approach you use late binding
so as to avoid having to set a reference to the Excel object library:
Dim appExcel As Object
Dim myWorkbook As Object
That way, you run less risk of a broken reference if your distribute your
database to a different computer with a different version of Excel on it.