Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default missing library makes Format() disappear

“Company XYZ” customized one of my subroutines, and this requires a
Reference to “AdapterRDC 1.0 Type Library”. I’m guessing that they
created this library.

I’m trying to give my spreadsheet to a user who does not have this
library. They only need to run a different subroutine, which does NOT
use this library.

But they get this error.

Compile error:
Can’t find project or library

....and the VBA code that is highlighted is an ordinary Format()
function.

Why would this happen? Even as a worst case, if the extra library
were to redefine the Format() function, you’d think that when the
library is missing, VBA would be able to find Format() where it
normally finds it.

As a temporary fix, I can give each user a copy of the library’s file,
"AdapterRDC.dll". This works.

Is there some sane explanation for this and/or a better fix?

Excel 2003
Windows 2000
Other libraries referenced:
Visual Basic for Applications
Microsoft Excel 11.0 Object Library
OLE Automation
Microsoft Office 11.0 Object Library
Microsoft Forms 2.0 Object Library
Microsoft Remote Data Object 2.0
Microsoft Scripting Runtime

Dan Williams
danwPlanet

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default missing library makes Format() disappear

Just go into ToolsReferences in the VBIDE and you will see that item with
MISSING alongside it. Uncheck it.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Dan Williams" wrote in message
...
“Company XYZ” customized one of my subroutines, and this requires a
Reference to “AdapterRDC 1.0 Type Library”. I’m guessing that they
created this library.

I’m trying to give my spreadsheet to a user who does not have this
library. They only need to run a different subroutine, which does NOT
use this library.

But they get this error.

Compile error:
Can’t find project or library

....and the VBA code that is highlighted is an ordinary Format()
function.

Why would this happen? Even as a worst case, if the extra library
were to redefine the Format() function, you’d think that when the
library is missing, VBA would be able to find Format() where it
normally finds it.

As a temporary fix, I can give each user a copy of the library’s file,
"AdapterRDC.dll". This works.

Is there some sane explanation for this and/or a better fix?

Excel 2003
Windows 2000
Other libraries referenced:
Visual Basic for Applications
Microsoft Excel 11.0 Object Library
OLE Automation
Microsoft Office 11.0 Object Library
Microsoft Forms 2.0 Object Library
Microsoft Remote Data Object 2.0
Microsoft Scripting Runtime

Dan Williams
danwPlanet


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default missing library makes Format() disappear

Look into late binding. In Early binding you create the link to the library
file at design time. With late binding you create the link ar run time. This
allows you to handle errors if the file is not found. You can search this
forum for CreateObject which will give you lots of examples of late binding
and probably a better explanation than what I am giving here...
--
HTH...

Jim Thomlinson


"Dan Williams" wrote:

€śCompany XYZ€ť customized one of my subroutines, and this requires a
Reference to €śAdapterRDC 1.0 Type Library€ť. Im guessing that they
created this library.

Im trying to give my spreadsheet to a user who does not have this
library. They only need to run a different subroutine, which does NOT
use this library.

But they get this error.

Compile error:
Cant find project or library

....and the VBA code that is highlighted is an ordinary Format()
function.

Why would this happen? Even as a worst case, if the extra library
were to redefine the Format() function, youd think that when the
library is missing, VBA would be able to find Format() where it
normally finds it.

As a temporary fix, I can give each user a copy of the librarys file,
"AdapterRDC.dll". This works.

Is there some sane explanation for this and/or a better fix?

Excel 2003
Windows 2000
Other libraries referenced:
Visual Basic for Applications
Microsoft Excel 11.0 Object Library
OLE Automation
Microsoft Office 11.0 Object Library
Microsoft Forms 2.0 Object Library
Microsoft Remote Data Object 2.0
Microsoft Scripting Runtime

Dan Williams
danwPlanet


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Zoom makes text disappear on one computer but not another... Delon Weuve Excel Discussion (Misc queries) 0 August 25th 09 06:01 PM
Hiding Rows makes entire sheet disappear Des1313 Excel Discussion (Misc queries) 3 July 31st 08 09:58 PM
Inserting Text Makes Numbers Disappear! al Excel Discussion (Misc queries) 5 January 5th 08 02:38 PM
Insert-Subtotals makes Column Outlines disappear gpie Excel Worksheet Functions 1 November 22nd 05 04:06 PM
Autofiltering Makes Button Control Disappear CYBERLIL Excel Programming 1 August 13th 04 03:54 AM


All times are GMT +1. The time now is 09:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"