Macro options in versions of excel?

phg

Board Regular
Joined
Jul 4, 2007
Messages
81
I have a macro which was created from one recorded in one version of Excel.

However when I try to run it in a different version of Excel on another computer I find it does not run because some of the properties in the querytable and search function which were created and operate in the first version are not recognized on the second computer.

Is there a source which lists macro functions and the valid properties in various versions of Excel?

Ideally I would like to identify the Excel version and select the correct options for that version.

Thanks
Phil
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

phg

Board Regular
Joined
Jul 4, 2007
Messages
81
Sorry for the delay - I didn't have access to the second file.

The macro was written in Excel 2002 (version 10.0) and had the problem in Excel 2000 (version 9.0).

Phil
 
Upvote 0

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
40,436
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Your best bet is to develop the macros on the oldest version they need to run on. Code is generally forward compatible (Office 2007 is a bit of an exception in some respects) but often not backward compatible.
 
Upvote 0

phg

Board Regular
Joined
Jul 4, 2007
Messages
81
Unfortunately i don't have access to the machine with Excel 2000 to do the development work there. I was hoping someone (Microsoft?) published a list of methods with all the properties they support.

Alternately is there a way to tell Excel to act like an older version.

Phil
 
Upvote 0

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
40,436
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
No, you have to test on the earlier version. I am not aware of a single document that lists all the changed methods/arguments from version to version (though that does not mean that one does not exist)
 
Upvote 0

phg

Board Regular
Joined
Jul 4, 2007
Messages
81
Thanks for the response. it wasn't what i was hoping for but at least I know what I have to do.

Phil
 
Upvote 0

Forum statistics

Threads
1,191,687
Messages
5,988,023
Members
440,125
Latest member
vincentchu2369

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top