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

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
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
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
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
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
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,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

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
Back
Top