+ Reply to Thread
Results 1 to 7 of 7

Macros works on one PC but not on another

  1. #1
    Forum Contributor
    Join Date
    04-27-2006
    Location
    Cayman Islands
    Posts
    379

    Macros works on one PC but not on another

    Morning all, having some problems with an excel sheet that I have made on my laptop and brought into work and when I try and run any of the macros it comes up with....

    Compile Error:

    Can't find project or library

    I don't think it makes a difference but one macro opens up a word document and adds cell information to bookmarks in it, the other spells a number (i.e. 200 becomes TWO HUNDRED)... neither see to work, same message for both.

  2. #2

    Re: Macros works on one PC but not on another

    Hi
    On the other machine open up the VB Editor and go to Tools, References.
    Look for any references with MISSING next to them. It might be, for
    example, that your laptop is referencing the Word 11.0 Object Library
    but the other machine has Word 10.0. You would then need to click on
    the reference to Word 10.0 on the other machine.

    regards
    Paul


  3. #3
    Forum Contributor
    Join Date
    04-27-2006
    Location
    Cayman Islands
    Posts
    379
    Thanks you are indeed correct, MISSING: Microsoft Word 11.0 Project Library, the Microsoft Word 10.0 Project Library is there though, how do I rectify this situation?

  4. #4
    Chip Pearson
    Guest

    Re: Macros works on one PC but not on another

    Click on the Browse button and navigate to (typically)
    "C:\Program Files\Microsoft Office\\OfficeMSWORD.olb") for Word
    and "C:\Program Files\Microsoft Office\Office\MSPRJ.olb" for
    Project/


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com



    "ChrisMattock"
    <[email protected]> wrote
    in message
    news:[email protected]...
    >
    > Thanks you are indeed correct, MISSING: Microsoft Word 11.0
    > Project
    > Library, the Microsoft Word 10.0 Project Library is there
    > though, how
    > do I rectify this situation?
    >
    >
    > --
    > ChrisMattock
    > ------------------------------------------------------------------------
    > ChrisMattock's Profile:
    > http://www.excelforum.com/member.php...o&userid=33912
    > View this thread:
    > http://www.excelforum.com/showthread...hreadid=541454
    >




  5. #5
    Forum Contributor
    Join Date
    04-27-2006
    Location
    Cayman Islands
    Posts
    379
    Assuming there is no way round that? Apparently I don't have access to the browse button... access rights. I suppose just redoing all my work on the work cmoputer may be the only way :S

  6. #6

    Re: Macros works on one PC but not on another

    Hi
    click on the 10.0 one and see how that goes

    Paul


  7. #7
    Forum Contributor
    Join Date
    04-27-2006
    Location
    Cayman Islands
    Posts
    379
    No that didn't work, but don't worry I've solved the problem... kind of...
    I just copied and pasted the code and worksheets from the saved verion to a new version using the older excel. Seemed to work, not the most elegant solution, but a solution is a solution! :P

+ 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