Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Error trying to run Excel 2003 Add-in in Excel XP

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Error trying to run Excel 2003 Add-in in Excel XP

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,

---
Regards,
Norman



"Crazy Cat" wrote in message
ups.com...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Error trying to run Excel 2003 Add-in in Excel XP


Norman Jones wrote:
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

---
Regards,
Norman



"Crazy Cat" wrote in message
ups.com...
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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Saving Excel 2003 Workbook in Excel 07 - Error Msg on Script obj WL Excel Discussion (Misc queries) 0 January 15th 08 06:20 PM
Strange 'protected cell' error affecting Excel 2003 but not Excel 2000? Pheasant Plucker® Excel Discussion (Misc queries) 1 April 10th 07 01:04 PM
Excel 2003 file opend in Excel 2000 - Compile error in hidden modu BhavdeepSachdev Excel Programming 3 November 29th 05 08:04 PM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM


All times are GMT +1. The time now is 12:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"