![]() |
#1
|
|||
|
|||
![]()
I'm working in Office 2010, using Excel 2010 and Word 2010.
when I try to open an Excel 2010 spreadsheet in Word 2010. I get the message "Automation Error - Library not registered". This code is part of an on-going project which used to work fine (until my old Windows 7 PC blew up). Having tried to research this I think I may know what the problem is, but I'm not sufficiently skilled to work out the solution. I think it's because when I bought my new PC it had a trial version of Office 365 installed. As I already have a fully licensed version of Office 2010 which I am quite happy with, I uninstalled Office 365 before the "end of trial approaching" nag screens started. I have the following references checked Visual Basic For Applications Microsoft Word 14.0 Object Library OLE Automation Normal Microsoft Office 14.0 Object Library Microsoft Excel 14.0 Object Library My simplified code follows Code:
Option Explicit Public Sub GetDataFromExcel() Dim appExcel As Excel.Application '* '** Create a new Excel application. '* Set appExcel = New Excel.Application End Sub Code:
Public Sub GetDataFromExcel() Dim appExcel As Excel.Application '* '** Create a new Excel application. '* ' Set appExcel = New Excel.Application Set appExcel = CreateObject("Excel.Application") End Sub I get very nervous using regedit - I subscribe to the old adage "a little knowledge is a dangerous thing". Can anyone explain in very simple language what to look for to confirm the diagnosis, and how to get around it? As Office 365 was pre-installed on my new PC (from Aldi), I don't have any installation CDs to uninstall or repair it, so I can't "start over again". I really need to get my Word project working soon, and without being able to get it to talk to Excel I'd need a major redesign and re-code. Can any kind soul offer any help? Thanks in advance.... |
Tags |
references, tools |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Word found unreadable content..." + "Word experienced an error trying to open..." | onas | Word | 1 | 09-02-2019 10:52 AM |
Get error:"cannot create page here" when opening a .one file | elmer666 | OneNote | 0 | 09-20-2017 08:20 AM |
![]() |
PoppaDon | Word | 5 | 05-03-2016 02:53 PM |
![]() |
hlina | Excel | 1 | 10-08-2013 09:14 PM |