Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Help locating Object Libraries

I developed an Excel macro but some people can't use it because they don't
have the object libraries needed in their Excel application. How do you add
object libraries to your VBA that are missing?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Help locating Object Libraries

See my reply in the misc group. In summary, copy the DLLs to the
target machines and use RegSvr32 to registry them with Windows.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)


On Fri, 6 Nov 2009 09:51:01 -0800, Ayo
wrote:

I developed an Excel macro but some people can't use it because they don't
have the object libraries needed in their Excel application. How do you add
object libraries to your VBA that are missing?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Help locating Object Libraries

What object libraries are missing? You may be able to write your code so
that it is late binding.



"Ayo" wrote:

I developed an Excel macro but some people can't use it because they don't
have the object libraries needed in their Excel application. How do you add
object libraries to your VBA that are missing?

  #4   Report Post  
Posted to microsoft.public.excel.programming
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Help locating Object Libraries

I am not sure exactly but my VBA has the following:
Microsoft Excel 12.0 Object Library
Microsoft Office 12.0 Object Library
Microsoft Forms 2.0 Object Library
I'm not sure how many more he's missing

and he could find the same Library in his version of the application, even
though he has Microsoft Office 2007.

"Barb Reinhardt" wrote:

What object libraries are missing? You may be able to write your code so
that it is late binding.



"Ayo" wrote:

I developed an Excel macro but some people can't use it because they don't
have the object libraries needed in their Excel application. How do you add
object libraries to your VBA that are missing?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Help locating Object Libraries

What object libraries are missing? You may be able to write your code so
that it is late binding.


That probably wouldn't help. If Windows can't find the typelib based
on the GUID, which is how References in VBA are accessed, it isn't
likely that the typelib can be found when a GetObject or CreateObject
is executed. Late binding allows you to omit the Reference, but it
still requires that the typelib and the codelib be discoverable so
that all the COM plumbing can work properly. If the VBA References
displays "MISSING", it is unlikely that late binding will do any good.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)


On Fri, 6 Nov 2009 10:11:03 -0800, Barb Reinhardt
wrote:

What object libraries are missing? You may be able to write your code so
that it is late binding.



"Ayo" wrote:

I developed an Excel macro but some people can't use it because they don't
have the object libraries needed in their Excel application. How do you add
object libraries to your VBA that are missing?

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
Help locating Object Libraries Ayo Excel Discussion (Misc queries) 2 November 6th 09 09:09 PM
Object libraries and different ones with different versions HeatherO Excel Programming 0 March 14th 05 06:37 PM
Office Object Libraries VanS[_2_] Excel Programming 1 November 23rd 04 06:51 PM
Using Outlook Object Libraries V8 & 9 Kevin Excel Programming 2 April 21st 04 03:55 PM
Object libraries Lionel Fridjhon Excel Programming 9 August 29th 03 01:20 PM


All times are GMT +1. The time now is 09:39 PM.

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

About Us

"It's about Microsoft Excel"