Results 1 to 5 of 5

Compile error: Can't find project or library - Windows 7 64 bit

Threaded View

  1. #1
    Forum Contributor onmyway's Avatar
    Join Date
    09-03-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2013
    Posts
    386

    Compile error: Can't find project or library - Windows 7 64 bit

    Hi all,

    I am soooo frustrated with issues running my project on Windows 7 64 bit PCs! The ActiveX controls needed registers on Windows 7 32 bit PCs, but not 64 bit.

    So, I have changed my UserForm to make use of a Class Module cCalendar instead of DTPicker, to eliminate issues on the PCs of other users.

    BUT, here is my new Windows 7 64 bit issue:

    When I run my app, I first get this error:

    Could not load some objects because they are not available on this machine

    when I then click on OK, I get the following error:

    Compile error: Can't find project or library

    highlighting the project or library that cannot be found: FirstRowAdd (see attached image). This is part of this section of code:

    Private Sub btnSave_Click()
    Dim iRow As Long, LR As Long
    Dim WS As Worksheet
    Set WS = Worksheets("DataSheet - Fitness")
    
    LR = Sheets("DataSheet - Fitness").Range("A" & Rows.Count).End(xlUp).Row
    'Find first empty row in database
    FirstRowAdd = FirstVisibleValue(ActiveSheet, 1)
    If FirstRowAdd = "" Then FirstRowAdd = "$A$" & LR + 1
    iRow = Range(FirstRowAdd).Row
    
    'Check for an ID number
    
    If Trim(Me.txtID.Value) = "" Then
      Me.txtID.SetFocus
      MsgBox "Please enter an ID Number"
      Exit Sub
    End If
    This ONLY happens on Windows 7 64 bit PCs.

    I would really appreciate all your help in fixing this issue, as well as making my app compatible with ALL OS!

    Thanks!
    Attached Images Attached Images
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Compile Error in Hidden Module and Compile Error: Can't find project or library
    By Taislin in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-10-2013, 07:03 PM
  2. [SOLVED] Compile Error: Can't find project or library. Windows vs MAC issue?
    By johnw993 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-04-2013, 05:40 PM
  3. Compile Error: Can't find project or library
    By gone83 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2011, 09:23 PM
  4. Compile Error - Can't find project or Library
    By bmasella in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2007, 07:55 PM
  5. [SOLVED] Compile error: Can't find project or library
    By Trefor in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-19-2006, 08:25 AM

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