Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Compile error - Can't find project library ????

I have a macro that works beautifully except for one major issue. It
works perfectly when I run it but when anybody else tries to run it,
it fails with a Compile Error.

I think the relevant part of the code is below. Basically, Cell D3
contains a number 1-30 based on user input. When the macro runs, it
takes the data from cell D3 and uses it to select one of 30 pictures
to copy and paste into another workbook. I have been running it for
several weeks but up until now, I have been the only person to run it.

Now I need to release it for other people to run and wouldn't you
know, the first person has a failure.

When the macro runs the following error appears in a pop-up window.

Compile Error
Can't find project library
with an OK and a Help button (the help button isn't helping)

The terms picSource are then highlighted in yellow by the error.


With Workbooks("Report.xls").Sheets("Reference")
If .Range("D3").Value = "1" Then
Set picSource = .Pictures("Picture 1")
With Workbooks("NEW-TACS-PLAN-OT.xls")

What am I doind wrong or what do I need to do? I think this has to do
with building a project or object library. If that is the case, how
do I build such a libray. All 30 of the pictures or located in the
workbook already.

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
Compile error: Can't find project or library Melanie New Users to Excel 14 August 21st 09 02:54 AM
Compile error: Can't find project or library Trefor Excel Programming 2 April 19th 06 01:22 PM
Compile error: Can't find project or library Fred Excel Programming 3 April 18th 06 08:59 AM
Compile error: Can't find project or library Vince Excel Programming 2 October 13th 05 04:50 PM
Compile error: Can't find project or library Daniel[_17_] Excel Programming 3 December 8th 04 01:05 PM


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