Determining which version of Excel a user has

project_man

New Member
Joined
May 5, 2002
Messages
12
Does anyone know how I can test which version of Excel a user is running so that I can call different subs depending on the version?

Thanks in Advance...
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

hedrijw

Board Regular
Joined
Jun 17, 2002
Messages
210
myversion = Application.Version

Example:

MsgBox "Welcome to Microsoft Excel version " & _
Application.Version & " running on " & _
Application.OperatingSystem & "!"
This message was edited by hedrijw on 2002-09-06 09:32
 

XL-Dennis

Well-known Member
Joined
Jul 27, 2002
Messages
1,920
project_man,

In addition to the reply above:

<pre>
Function XLversion() As String
Dim sVersion As String
sVersion = Val(Application.Version)

Select Case sVersion
Case 7: XLversion = "95 / 5.0"
Case 8: XLversion = "97 / 8.0"
Case 9: XLversion = "2000 / 9.0"
Case 10: XLversion = "2002 / 10.0"
Case 11: XLversion = "2003 / 11.0"
End Select
End Function
</pre>

Kind regards,
Dennis
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,956
Messages
5,834,579
Members
430,298
Latest member
Stanles

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