473,396 Members | 2,061 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,396 software developers and data experts.

How can I disable a reference library with VBA code

Dear reader,

I can "able" and "unable" (disable) reference libraries in the reference
form of VBA with Tools/References..

But is there code available in VBA to disable a missing reference.

I have already VBA code with the functionality to check of the reference to
an external library is still available. In case the reference is broken the
checking code runs into an error because the tick box in the reference form
is still active. If I disable the tick box the checking code fore missing
references works perfect.

Now I am looking for VBA code how to unable the missing references in the
reference form of VBA.

Thanks for any help.

Kind regards,

Simon van Beek
Nov 13 '05 #1
1 5717
Each Reference object has an IsBroken property. You could loop through the
References collection, and delete each Reference object with its IsBroken
property set to True.

You might be interested in reading what MichKa suggests at
http://www.trigeminal.com/usenet/usenet026.asp
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"S. van Beek" <S.******@HCCnet.nl> wrote in message
news:43*********************@reader2.nntp.hccnet.n l...
Dear reader,

I can "able" and "unable" (disable) reference libraries in the reference
form of VBA with Tools/References..

But is there code available in VBA to disable a missing reference.

I have already VBA code with the functionality to check of the reference
to
an external library is still available. In case the reference is broken
the
checking code runs into an error because the tick box in the reference
form
is still active. If I disable the tick box the checking code fore missing
references works perfect.

Now I am looking for VBA code how to unable the missing references in the
reference form of VBA.

Thanks for any help.

Kind regards,

Simon van Beek

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: rockio | last post by:
I have two computers with MS Access 2000 installed. However one computer has Microsoft Outlook 2002 installed while the other does not. The computer without Microsoft Outlook 2002 does not seem to...
1
by: paulmac106 | last post by:
I have to reference a library (DTSPackage.dll), but the other 40 users do not need the code that refrences this library. And since they don't have SQL Server loaded on their machine, they don't...
2
by: joemo2003 | last post by:
How to use VBA to check does a reference library exist? In my case, some computer have visio installed, but some don't. So i want use VBA to check does that visio reference exist on that computer. ...
5
by: Smithers | last post by:
I'm writing a code library that needs to be reused between a Windows Forms application and and an ASP.NET Web application. The library needs to do a couple of things differently depending on the...
9
by: CoCoCha | last post by:
Hi, I am trying to run a simple macro in excel vba to create a new email and attach two spreadsheets. But it won't work. It stops at the first line everytime. Dim objOutlook As...
3
jmoudy77
by: jmoudy77 | last post by:
Hi, I've built a database in XP and when trying to run it on a machine with office 2003 I get a bunch of reference and library problems. Does 2003 not include the same references and libraries that...
1
by: roltur | last post by:
Sorry to be a real dunce; teaching myself from scratch. Does anyone know a website where you can type in a function name and it'll look-up the library I need to add my project (it'd save me hours:)...
3
by: smorrison64 | last post by:
I have a database that references a particular type library from my C drive (PhotoShare from Yahoo Messenger). The database is actually housed on a network drive so the library reference is missing...
4
akashazad
by: akashazad | last post by:
Hi Guys I am trying to run my project but during compiling it gives the error as "Can't find Project and Library." and highlight the function "LEFT",so can some body please tell me which Reff...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.