Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default New variables in 2002 vs. 2000

I do volunteer work with an out-of-state non-profit organization that runs
Office 2000. I wrote several VBA programs for them using Excel 2002. I
sometimes get nailed on revisions that I send because of my newer version.
Almost always the problem is that I included system defined variables
(usually generated when I record a macro) that were not used in the prior
version.

Can anyone offer an easy way for me to check the code for back compatabiity
before I send it to them.

Thanks for any suggestions.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default New variables in 2002 vs. 2000

The only safe way is to actually write it in 2000. That being said there are
a few main compatabilty culprets. Pivot tables changed drastically in 2002 (a
whole new data engine). Nothing about pivot table code is portable between
the 2 versions. Some references are updated in 2002 (specifically Microsoft
ActiveX Data Objects 2.8).

The biggest one however is sort routines include and extra parameter.
(DataOption1:=xlSortNormal) Which can just be deleted as xlSortNormal is the
default. If the prameter is anything else then you need to worry about
compatiability as you are using a feture that does not exist in 2000...
--
HTH...

Jim Thomlinson


"Bonsai Bill" wrote:

I do volunteer work with an out-of-state non-profit organization that runs
Office 2000. I wrote several VBA programs for them using Excel 2002. I
sometimes get nailed on revisions that I send because of my newer version.
Almost always the problem is that I included system defined variables
(usually generated when I record a macro) that were not used in the prior
version.

Can anyone offer an easy way for me to check the code for back compatabiity
before I send it to them.

Thanks for any suggestions.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 28
Default New variables in 2002 vs. 2000

Hi Jim,

Thanks for your reponse, although it was not the answer I was hoping for.
Fortunately I was not using pivot tables but will remember that.

The sort variable you mentioned got me. Here are some more that that I
remember:

PrintQuality
PrintErrors
Tab.Color

I will probably move on to Office2007 later this year so I expect there will
be more goctha's when I do.

"Jim Thomlinson" wrote:

The only safe way is to actually write it in 2000. That being said there are
a few main compatabilty culprets. Pivot tables changed drastically in 2002 (a
whole new data engine). Nothing about pivot table code is portable between
the 2 versions. Some references are updated in 2002 (specifically Microsoft
ActiveX Data Objects 2.8).

The biggest one however is sort routines include and extra parameter.
(DataOption1:=xlSortNormal) Which can just be deleted as xlSortNormal is the
default. If the prameter is anything else then you need to worry about
compatiability as you are using a feture that does not exist in 2000...
--
HTH...

Jim Thomlinson


"Bonsai Bill" wrote:

I do volunteer work with an out-of-state non-profit organization that runs
Office 2000. I wrote several VBA programs for them using Excel 2002. I
sometimes get nailed on revisions that I send because of my newer version.
Almost always the problem is that I included system defined variables
(usually generated when I record a macro) that were not used in the prior
version.

Can anyone offer an easy way for me to check the code for back compatabiity
before I send it to them.

Thanks for any suggestions.

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
97 code vs. 2000 and 2002 CLR Excel Programming 4 May 1st 06 05:45 PM
Excel 2000 to 2002 - #NAME? Paulo Freixieiro Excel Discussion (Misc queries) 1 September 7th 05 01:12 AM
XL 2002 vba on an XL 2000 machine Mike[_72_] Excel Programming 1 February 24th 04 01:59 AM
Excel 2000 and 2002 Tim Childs Excel Programming 3 October 22nd 03 01:23 AM
2000 vs 2002 xConstants Terry von Gease Excel Programming 2 September 7th 03 05:45 PM


All times are GMT +1. The time now is 11:04 AM.

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"