LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Compile Error, Can'f Find Project or Library


I have this code in my executable:

taskno = ActiveSheet.Range("c65536").End(xlUp).Value
If taskno = Range("c1").Value Then
taskno = Right(Year(Now()), 2) & "-" & Init & "-00"
Else
If Left(taskno, 2) < Right(Year(Now()), 2) Then
taskno = Right(Year(Now()), 2) & "-" & Init & "-00"
End If
End If

I have other areas in my code looking for "Mid", "Left", "Right" an
changing text from mixed/lower case to UCase. In Excel 97 - this cod
worked fine. Now I get the "Compile Error, Can't find Project o
Library and the error stops on the "Right", "Mid", "Left" etc. I ge
this error in Excel 2000 and 2002.

I know I've run into this problem before, but for whatever reason,
can't seem to get to the answer now.

Basically, this code is to count a task number with a persons initial
based on the year the task is generated in.

The "result" would look like this: 03-TH-00 for the first task of th
year, then the next task would be 03-TH-01 and so on.

Ted Herrman

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

 
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
Can't Find Project or Library Error Vick Excel Discussion (Misc queries) 1 May 17th 08 12:25 PM
can't find project or library - error Chris T-M New Users to Excel 4 January 18th 07 10:23 PM
help with this error-Compile error: cant find project or library JackR Excel Discussion (Misc queries) 2 June 10th 06 09:09 PM
Compile Error! Can't find project or Library --- Help! Suh Suk Ho Excel Programming 2 July 21st 03 08:26 PM


All times are GMT +1. The time now is 11:27 PM.

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"