Consulting

Results 1 to 8 of 8

Thread: Can’t Find Project on Library . . .

  1. #1

    Can’t Find Project on Library . . .

    Gawd, I hope one of you guys can help me put life back into my Excel system. I have no idea what caused this to start happening, but now every time I execute a macro (seems like any macro) I get an error message like:
    Compile error. Can’t find project or library”, “Missing Personal.xls”, or “Missing ATPVBAEN.xla”. I looked at my list of references and if the file name is there, it’s written like: “Missing: Personal.xls” or “Missing: ATPVBAEN.xla” or both.

    Both of these files reside at:
    “C:\Program Files\Microsoft Office\Office\OFFICE11\XLSTART\Personal”.
    I had a backup copy of Personal which I substituted for the old Personal, but that was no help. Because I have a large number of shared macros on Personal, I cannot use Excel until I can get it to load.

    Both files are resident at the place that Excel expects them to be, so why can’t Excel load them?? Note that IF I see either of these files in the Reference list, it has “Missing” preceding it. So a fix does not include putting a check mark in the little box next to the name. It almost sounds like Excel is looking in a different place now for those files.

    I would REALLY appreciate your help on this one. All my business activities revolve around Excel, so now I’m dead in the water!
    Sid

  2. #2
    Knowledge Base Approver VBAX Master Oorang's Avatar
    Joined
    Jan 2007
    Posts
    1,135
    Location
    Try unchecking the reference, closing out of the reference window. Then open the reference window back up and instead of checking those entries (if they still exist), use the browse window to manually browse to the files then click ok. Then do debug>compile.
    Cordially,
    Aaron



    Keep Our Board Clean!
    • Please Mark your thread "Solved" if you get an acceptable response (under thread tools).
    • Enclose your code in VBA tags then it will be formatted as per the VBIDE to improve readability.

  3. #3
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    You probably don't need to reference them at all, normally unchecking the MISSING items is all that is required.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  4. #4
    Unchecking was one of the first things I did, and that didn't work. I've been fooling around and it's starting to work better . . . still getting some messages at startup, but subsequent openings of other workbooks has been clean.
    I did discover that ATPVBAEN.xla is located at:
    C:\Program Files\Microsoft Office\OFFICE11\Library\Analysis\ATPVBAEN.xla
    I hadn't seen that before. I also have a copy in
    ". . . OFFICE11\XLSTART\ATPVBAEN.xla" I'm not sure yet which one is being used.
    How does Excel know where to look? Is there a list of locations somewhere? I did a Google on the messages, and I found that this problem at one time was pretty common, but nothing showed up for recent experience. It was particularly bothersome in the conversion to Windows XP. Other files were involved then.

    Thanx a lot for giving it some thought.
    Sid

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Look at

    Application.StartupPath

    in the immeditae window.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  6. #6
    Sorry, but I don't know how to do that (sigh).

  7. #7
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    or try
    [VBA]
    MsgBox Application.StartupPath
    [/VBA]
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  8. #8
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Quote Originally Posted by Cyberdude
    Sorry, but I don't know how to do that (sigh).
    The immediate window - Ctrl-G in the VBIDE.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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