+ Reply to Thread
Results 1 to 2 of 2

error can't find project or library

Hybrid View

  1. #1
    Registered User
    Join Date
    01-31-2006
    Posts
    20

    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


    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



    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???

  2. #2
    Forum Contributor
    Join Date
    12-04-2003
    Posts
    360
    Tools>refernces

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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1