Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-28-2019, 09:14 AM
sts023 sts023 is offline Opening Excel from Word gets "Automation Error - Library not registered" Windows 10 Opening Excel from Word gets "Automation Error - Library not registered" Office 2010
Hopeless Idiot
Opening Excel from Word gets "Automation Error - Library not registered"
 
Join Date: Apr 2019
Location: God's Own County
Posts: 26
sts023 is on a distinguished road
Default Opening Excel from Word gets "Automation Error - Library not registered"

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
Also failing:-
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
From what I can gather from some posts on various help desk sites, my PC is getting confused because of a Registry entry which may have been left behind by an imperfect uninstall of Office 365. The suggested solution(s) suggest editing the Registry to remove references to parts of Office 365.

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....
Reply With Quote
 

Tags
references, tools



Similar Threads
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
Opening Excel from Word gets "Automation Error - Library not registered" Error opening file: "Found a problem with its contents" PoppaDon Word 5 05-03-2016 02:53 PM
Opening Excel from Word gets "Automation Error - Library not registered" Automation error Unknown error" message once they open the Excel file hlina Excel 1 10-08-2013 09:14 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:17 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft