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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,223,393
Messages
6,171,838
Members
452,427
Latest member
samk379

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