473,378 Members | 1,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Missing References for VBA

Hi there!
This code doesn't work for me. Why? I have Access 2003.

Expand|Select|Wrap|Line Numbers
  1. Dim VBAEditor As VBIDE.VBE
  2. Dim VBProj As VBIDE.VBProject
  3. Dim chkRef As VBIDE.Reference
  4.  
  5. Set VBAEditor = Application.VBE
  6. Set VBProj = VBAEditor.ActiveVBProject
  7. For Each chkRef In VBProj.References
  8.   If chkRef.IsBroken Then
  9.     VBProj.References.Remove chkRef // Gives me an error
  10.   End If
  11. Next
The error is "Object library not registered"
Which library?
I tried to registry all of them, some of them was fine.
But when I tried:
Regsvr32 "C:\Program Files (x86)\Microsoft Office\OFFICE11\MSACC.OLB"
- it gives me an error: The module "C:\Program Files (x86)\Microsoft Office\OFFICE11\MSACC.OLB" was loaded but the entry-point DllRegisterServer was not found.

Thanks for your help!
Oct 26 '11 #1
2 5243
NeoPa
32,556 Expert Mod 16PB
You need the reference :
Microsoft Visual Basic for Applications Extensibility 5.3
to be selected within Tools / References.
Oct 27 '11 #2
ADezii
8,834 Expert 8TB
No External References needed
Expand|Select|Wrap|Line Numbers
  1. Dim ref As Reference
  2.  
  3. For Each ref In Application.References
  4.   If ref.IsBroken Then Application.References.Remove ref
  5. Next
  6.  
Oct 27 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Zarko Jovanovic | last post by:
hi all, this is what happend: first I uninstalled office xp and the reinstall it after that my VB project (visual studio .net) cannot open references (project -> references) it says...
4
by: Zlatko Matić | last post by:
Hello. I prepared a .mde file using Access 2003. When I tried to use it on a computer with Access 2002 installed, it didn't work, because some references were missing (lower versions). Therefore...
3
by: S. van Beek | last post by:
Dear reader, I still have a problem with my reference libraries. In my frond end application a check procedure for missing references is available. The problem I confronted with is that...
2
by: S. van Beek | last post by:
Dear reader, For removing a reference in the VBA reference form I receive from Doug Steele the following code: ........... References.Remove refCurr
0
by: A.Black | last post by:
Hi, Trying to create a simple application in C# that requires access to Outlooks mail folders. Have downloaded sample code and that works fine however when I try to create my own project & code I...
9
by: [Yosi] | last post by:
Any one know where can find a references to download and add to my solutions, I need : - System.Diagnostics -System.Configurations -Microsoft.Win32.Interop I don't have them in my machine ,I...
5
by: Jozef | last post by:
I have an MDE file that is blowing up with "Error 3075 Function Not Available", which is normally a reference issue, but, I have no missing references. It seems that offending function is a...
2
by: jodyblau | last post by:
I have noticed that when I move my database onto a different computer, I often get a message about some reference missing. So I go into the reference list, and find the one that says "Missing,"...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.