Solved

An error occurred initializing the VBA libraries (265) - MS Excel

Posted on 2003-11-21
7
2,348 Views
Last Modified: 2007-12-19
I am having a problem when i try to open an .xlt excel file.

In Windows2000 with Excel 2000 when I double click on the xlt file to open it I am given the Macros prompt and I click on "Enable Macros" (I've tried clicking "Disable Macros" but still have the same results).  Then I am receving the message: "An error occurred initializing the VBA libraries (265)".  

I click ok on the message and then the Excel application stays open but the Excel file does not open.  If i open the Visual Basic Editor from inside Excel and then try to open the file I receive a "Device I/O" error message.  

In WindowsXP with Excel 2002 I eventually receive a message box saying:
"Errors were detected in 'filename.xlt', but Microsoft Excel was able to open the file by making the repairs listed below. Save the file to make these repairs permanent.  Lost Visual Basic project. Lost ActiveX controls."

When I click Ok the template opens but there is no data in it as there should be.  There is just the header and column headings.

When I then save the file, the file size is goes to 33K instead of the 125K it started at originally.

I've found some articles on Microsoft.com that deal with similar issues but in Excel97 and when I've tried their fixes I still end up with the save problem.  

I've tried opening other xlt files that contain macros as well and they work find.  Any ideas of things I can try to get this file opening properly?  Thanks!
0
Comment
Question by:pliant6
7 Comments
 
LVL 80

Expert Comment

by:byundt
ID: 9800114
Hi pliant6,
Are there supposed to be VBA macros in the template? If so you may want to try "cleaning" them using Rob Bovey's VBA CodeCleaner http://www.cpearson.com/excel/xltools.htm

Have you tried Excel 2002's File Repair and Open tool? To access it, use the File...Open menu item. Choose your file, then click the triangle to the right of the Open button. Choose File Repair and Open.

Cheers!

Brad
0
 

Author Comment

by:pliant6
ID: 9800211
Yes, when I use the Repair and Open tool in Excel 2002 is when I get the: "Errors were detected in 'filename.xlt', but Microsoft Excel was able to open the file by making the repairs listed below. Save the file to make these repairs permanent.  Lost Visual Basic project. Lost ActiveX controls."

When i tried the VBA Code Cleaner I get a message saying: "Programmatic access to Visual Basic Project is not trusted (CodeCleanerMain).

:(
0
 
LVL 11

Expert Comment

by:turn123
ID: 10177571
pliant6,
No comment has been added lately (62 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Accept byundt's answer http:#9800114 and Refund

Please leave any comments here within 7 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

turn123
EE Cleanup Volunteer
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:pliant6
ID: 10177801
I would like to request a refund.  Nothing helped to fix this file as it was being corrupted during a Kermit file transfer.
0
 
LVL 11

Expert Comment

by:turn123
ID: 10178723
pliant6,

If you want to delete this question, post a zero-point question in http://www.experts-exchange.com/Community_Support/

Subject: Moderator Please Delete
Body: Please delete this question:
http://www.experts-exchange.com/Applications/Q_20805493.html

or you could just leave it as my recommendation was for you to get a refund.

Turn123
0
 

Accepted Solution

by:
SpazMODic earned 0 total points
ID: 10230076
PAQed, with points refunded (150)

SpazMODic
EE Moderator
0
 

Expert Comment

by:otwo
ID: 14655430
Possible fix
open the workbook in Excel 2002 and hit Alt +F11
Insert from the tool bar
then Module
Select Tools and references
make sure Visual Basics for applications is selected
Add Active controls are also checked


Good Luck!!
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
If your app took Google’s lash recently, here are the 5 most likely reasons.
The viewer will learn how to create multiple layers to apply various filters and how to delete areas from each layer’s filter.
Video by: Tony
This video teaches viewers how to export a project from Adobe Premiere Pro and the various file types involved.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now