J
Jeff Hunt
Our company is getting ready to upgrade to Office 2007 so we have been going
through all our files with VBA or Macros to make sure they will work. So far
we have found only one that is failing, but it is beyond me why it is. One
of my coworkers has a database that uses a VBA event to open an Excel file, I
believe to make a few changes to the columns and then import into the
database. The command she is using to open the file is one we have used
successfully before:
Dim xl As Excel.Application
Set xl = CreateObject("Excel.Application")
It is failing on the "Set xl" command with the following error:
Run-time error '429':
ActiveX component can't create object.
Sounded to me like a problem with the references, but I've played with
several to no avail. The references on this database are as follows and in
this order:
- Visual Basic for Applications
- Microsoft Access 12.0 Object Library
- OLE Automation
- Microsoft DAO 3.6 Object Library
- Microsoft Excel 11.0 Object Library
- Microsoft ActiveX Data Objects 2.8 Library (used to be 2.1)
- Microsoft Office 12.0 Object Library
Anyone have experience with this error after converting from Access 2003 to
Access 2007 that can shed some light on the subject? Thanks!
through all our files with VBA or Macros to make sure they will work. So far
we have found only one that is failing, but it is beyond me why it is. One
of my coworkers has a database that uses a VBA event to open an Excel file, I
believe to make a few changes to the columns and then import into the
database. The command she is using to open the file is one we have used
successfully before:
Dim xl As Excel.Application
Set xl = CreateObject("Excel.Application")
It is failing on the "Set xl" command with the following error:
Run-time error '429':
ActiveX component can't create object.
Sounded to me like a problem with the references, but I've played with
several to no avail. The references on this database are as follows and in
this order:
- Visual Basic for Applications
- Microsoft Access 12.0 Object Library
- OLE Automation
- Microsoft DAO 3.6 Object Library
- Microsoft Excel 11.0 Object Library
- Microsoft ActiveX Data Objects 2.8 Library (used to be 2.1)
- Microsoft Office 12.0 Object Library
Anyone have experience with this error after converting from Access 2003 to
Access 2007 that can shed some light on the subject? Thanks!