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


I have some vba Excel code that works when it is run on a windows 2000
OS PC But when I run the same code on an Windows XP OS PC I
get
Compile error can't find project or library

both PC have Office 2003 (Excel) installed

Debug brings me to



Code:
--------------------

Private Sub UserForm_Initialize()
txtCurrentDate.Value = Format(Now(), "mm/dd/yyyy")
End Sub

--------------------

If I get rid of the Format function it solves the error




Code:
--------------------

Private Sub cmdEmail_Click()
If Trim(Me.txtEmployeeName) = "" Then
Me.txtEmployeeName.SetFocus
MsgBox "Employee Name is a Required Field", vbOKOnly, "Required Field"
Exit Sub
Else
Worksheets("LeaveRequested").[C5] = txtEmployeeName.Text
End If

--------------------


If I get rid of the Trim function it solves the error



How can I resolve this issue so that my VBA code works on both Windows
2000 and XP OS???


--
cedtech23
------------------------------------------------------------------------
cedtech23's Profile: http://www.excelforum.com/member.php...o&userid=31022
View this thread: http://www.excelforum.com/showthread...hreadid=563808

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default error can't find project or library


Toolsrefernces

it should have a checkbox and prefixing it should say 'MISSING'


--
MattShoreson
------------------------------------------------------------------------
MattShoreson's Profile: http://www.excelforum.com/member.php...fo&userid=3472
View this thread: http://www.excelforum.com/showthread...hreadid=563808

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
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
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
Error:Can't find project or library Casey[_19_] Excel Programming 9 August 13th 05 09:53 AM


All times are GMT +1. The time now is 01:35 AM.

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"