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