Identify What Version of Excel is Installed

bisel

Active Member
Joined
Jan 4, 2010
Messages
257
Office Version
  1. 365
Platform
  1. Windows
I have a need to determine if the user's installed version of Excel will support specific features. Upon opening a workbook, I am trying to collect information ...
  • The Excel Version number
  • The Excel Product Code
  • The Excel Build Number
  • The Operating System identifier

I am using the following in a macro that runs when the user opens the workbook ...

Rich (BB code):
Sub checkexcel()
     Dim excelname as String
Dim excelVersion As String​
Dim excelBuild As String​
Dim excelProductCode As String​
Dim osp As String​
excelname = Application.Application excelVersion = Application.Version​
excelBuild = Application.Build excelProductCode = Application.productCode osp = Application.OperatingSystem end sub

When I run the macro, I get the following results:

Application.Application = Microsoft Excel
Application.Version = 16.0
Application.Build = 18324
Application.ProductCode = {90160000-000F-0000-1000-0000000FF1CE}
Application.OperatingSystem = Windows (64-bit) NT 10.00

I am hoping to be able differentiate between Excel 2016, 2019, 2021, 2024 and 365. But all these have Application.Version = 16.0

Looking into the build numbers and I am finding similar problems. That is, I cannot find a reference of build numbers that differentiate between Excel's. Perhaps there is such a thing, but I cannot find them. Lastly, my PC is running Windows 11, but Application.OperatingSystem yields the result shown above.

Does anyone have a solution on how I can perform the query upon opening an Excel Workbook to obtain the details I am looking for?

Thanks,

Steve
 
Last edited by a moderator:

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,225,739
Messages
6,186,743
Members
453,370
Latest member
juliewar

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