Error trying to run Excel 2003 Add-in in Excel XP

C

Crazy Cat

Hi,

I wrote an Excel 2003 Add-in using VBA and distributed it to someone
using Excel XP (Excel 2003).

Whenever my client uses the app I am getting the following error when
the Mid function is encountered --

"Compile Error: Can't find project or library".

After I prepend the mid function with vba (so every instance of mid is
now vba.mid), the error goes away, but I'm wondering if all the
standard VBA functions will be affected in this manner and if there's
an easier resolution? Also I was under the impression that the VBA
library distributed with Office 2003 was the same as that with Office
XP -- am I mistaken?

Thanks,

Crazy
 
N

Norman Jones

Hi Crazy Cat,

With the workbook in question active, run the problematic code

When the code errors, go to the VBE and select the project in the Project
Explorer Window

Hit the reset button and look at the Tools | References list

Look for any references marked as "MISSING".

Either uncheck the reference or, if the reference is needed, try the browse
button to locate the library,
 
C

Crazy Cat

Norman said:
Hi Crazy Cat,

With the workbook in question active, run the problematic code

When the code errors, go to the VBE and select the project in the Project
Explorer Window

Hit the reset button and look at the Tools | References list

Look for any references marked as "MISSING".

Either uncheck the reference or, if the reference is needed, try the browse
button to locate the library,

Thanks, Norman,

That did the trick.

Crazy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top