#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default VB error

Hi

While running an Access macro I am getting a VB error stating "Compile
Error" Can't find project or library. When I click O.K it takes you to a
reference page which shows MISSING: Microsoft Excel 11.0 Object Library. The
macro is creating an excel document it needs this library to create the
excel object.

Does anyone know why?

Ajay



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default VB error

To create an instance of Excel and run VB code you will need the Object
Library loaded.

--
Cheers
Nigel



"ajmister" wrote in message
...
Hi

While running an Access macro I am getting a VB error stating "Compile
Error" Can't find project or library. When I click O.K it takes you to a
reference page which shows MISSING: Microsoft Excel 11.0 Object Library.

The
macro is creating an excel document it needs this library to create the
excel object.

Does anyone know why?

Ajay





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default VB error

This probably means that the code was written on a higher version of Excel
than the one that you are running on. The new machine will not have Excel
11.0 Object Library, but I bet it has a lower version. If you scroll down
and find that lower version, check it, and uncheck the 11.0 version, it
should work.

Moral. Develop on the lowest Excel deployment version.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"ajmister" wrote in message
...
Hi

While running an Access macro I am getting a VB error stating "Compile
Error" Can't find project or library. When I click O.K it takes you to a
reference page which shows MISSING: Microsoft Excel 11.0 Object Library.

The
macro is creating an excel document it needs this library to create the
excel object.

Does anyone know why?

Ajay





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
Visual Basic Error Run Time Error, Type Mismatch Meg Partridge Excel Discussion (Misc queries) 12 September 10th 08 06:10 PM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
run-time error '1004': Application-defined or object-deifined error [email protected] Excel Programming 5 August 10th 05 09:39 PM
Automation Error, Unknown Error. Error value - 440 Neo[_2_] Excel Programming 0 May 29th 04 05:26 AM


All times are GMT +1. The time now is 12:11 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"