ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   version compatibility of excel macros (https://www.excelbanter.com/excel-programming/330713-version-compatibility-excel-macros.html)

AFlannery

version compatibility of excel macros
 
We are using Excel Macros pretty extensively.

Workbook is created in Excel 2003. Macros are written and run.

When the same workbook isopened in Excel 2002, the macro halts with the
error message

Can't Compile
Can't Find Project or Library

The library for Excel 2003 is

It fails though on some pretty low level commands that ARE in referenced
libraries.
Format$, LCase, UCase - stuff like that.

The library for these commands is the Visual Basic for Applications Library.
This is correctly referenced in the References window of both versions. When
I use the object browser in both revisions, it correctly finds the function,
but it will not compile.

We'd like to be able to pass these workbooks back and forth. We're not using
any features that aren't supported in both versions. Any thoughts on how to
make this work?

Thanks,
Tony

Bob Phillips[_7_]

version compatibility of excel macros
 
Do you have any missing libraries in the list, if so fix these.
--
HTH

Bob Phillips

"AFlannery" wrote in message
...
We are using Excel Macros pretty extensively.

Workbook is created in Excel 2003. Macros are written and run.

When the same workbook isopened in Excel 2002, the macro halts with the
error message

Can't Compile
Can't Find Project or Library

The library for Excel 2003 is

It fails though on some pretty low level commands that ARE in referenced
libraries.
Format$, LCase, UCase - stuff like that.

The library for these commands is the Visual Basic for Applications

Library.
This is correctly referenced in the References window of both versions.

When
I use the object browser in both revisions, it correctly finds the

function,
but it will not compile.

We'd like to be able to pass these workbooks back and forth. We're not

using
any features that aren't supported in both versions. Any thoughts on how

to
make this work?

Thanks,
Tony




Tom Ogilvy

version compatibility of excel macros
 
After the problem, hit the reset button, then go to tools=references and
see what is marked as MISSING. That reference needs to be removed or
corrected.

--
Regards,
Tom Ogilvy

"AFlannery" wrote in message
...
We are using Excel Macros pretty extensively.

Workbook is created in Excel 2003. Macros are written and run.

When the same workbook isopened in Excel 2002, the macro halts with the
error message

Can't Compile
Can't Find Project or Library

The library for Excel 2003 is

It fails though on some pretty low level commands that ARE in referenced
libraries.
Format$, LCase, UCase - stuff like that.

The library for these commands is the Visual Basic for Applications

Library.
This is correctly referenced in the References window of both versions.

When
I use the object browser in both revisions, it correctly finds the

function,
but it will not compile.

We'd like to be able to pass these workbooks back and forth. We're not

using
any features that aren't supported in both versions. Any thoughts on how

to
make this work?

Thanks,
Tony





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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com