Will this work if someone has office 2002 installed? :
Dim oExcel As Object
Dim wbk As Object
Dim a As String
Try
oExcel = CreateObject("Excel.Application")
Catch ex As Exception
MessageBox.Show("Microsoft Office not installed, or the version
installed is too old.", "Microsoft Office Error",
MessageBoxButtons.OK, MessageBoxIcon.Error)
Exit Sub
End Try
wbk = oExcel.Workbooks.Open(Filename:=TheExcelFile, UpdateLinks:=False,
ReadOnly:=True)
Is that an example of "late binding" ?
--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com