Excel 97 VBA vs Excel 2000 VBA 
Author Message
 Excel 97 VBA vs Excel 2000 VBA

I've got an application that uses Excel to do some reporting.

I create a generic object, then set that object to Excel.Application.

I then try to run a macro named "Run_Report".  This works fine and dandy
under Excel 2000, but with Excel 97, I get an error from my VB application
that states that the macro can not be found.

Any thoughts?

Thanks,

George



Tue, 30 Nov 2004 04:38:43 GMT  
 Excel 97 VBA vs Excel 2000 VBA
Hi George,

Quote:
> I then try to run a macro named "Run_Report".  This works fine and dandy
> under Excel 2000, but with Excel 97, I get an error from my VB application
> that states that the macro can not be found.

That may well be symptomatic of a compile error in the Excel code - as a
result of using routines that were introduced in Excel 2000.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.BMSLtd.co.uk



Wed, 01 Dec 2004 05:18:33 GMT  
 Excel 97 VBA vs Excel 2000 VBA
Thanks Stephen.  I'll take a look at it again under Excel 97 and see what
the offending routines may be.

George


Quote:
> Hi George,

> > I then try to run a macro named "Run_Report".  This works fine and dandy
> > under Excel 2000, but with Excel 97, I get an error from my VB
application
> > that states that the macro can not be found.

> That may well be symptomatic of a compile error in the Excel code - as a
> result of using routines that were introduced in Excel 2000.

> Regards

> Stephen Bullen
> Microsoft MVP - Excel
> www.BMSLtd.co.uk



Wed, 01 Dec 2004 08:39:12 GMT  
 Excel 97 VBA vs Excel 2000 VBA
Stephen (and anyone else who has input),

The "symptomatic of a compile error in the Excel code" was correct.  The
offending code was actually an Enum listing.

So I changed my Enum values to constants, recompiled, and it ran like a
dream under Office 97 Professional.

Now it is bombing under Office 97 Standard.  (sigh)  But it won't go into
the de{*filter*} now, it just raises the error about the macro not being found.

Any further suggestions?

Thanks,

George



Sat, 04 Dec 2004 07:05:44 GMT  
 Excel 97 VBA vs Excel 2000 VBA
Hi George,

Quote:
> Now it is bombing under Office 97 Standard.  (sigh)  But it won't go into
> the de{*filter*} now, it just raises the error about the macro not being found.

My guess would be that you're referencing a control that doesn't exist on
that machine.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.BMSLtd.co.uk



Thu, 09 Dec 2004 03:23:14 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Compatibility Problem Using MS Excel 97 VBA on Excel 2000/XP - Causes crashes

2. VBA code in Excel 97 vs Excel 2002

3. VBA 97 vs VBA 2000

4. Import From Excel 2000 with VBA code into Access 97

5. VBA and Fields in Word and Excel 97/2000

6. VBA and Fields in Word and Excel 97/2000

7. VBA and Fields in Word and Excel 97/2000

8. Help Excel 1997 to Excel 2000 VBA references

9. vba access vs vba excel (alguien sabe?)

10. Word VBA vs Excel VBA

11. vba code to copy table from access 97 to excel 97

12. Windows EXCEL VBA / MAC EXCEL VBA compatibility issues

 

 
Powered by phpBB® Forum Software