• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 249
  • Last Modified:

Determine Version of Microsoft Excel on Client Computer

I would like a way using Javascript or Browser VB Script to determine the version of MS Excel on the client machine.

If this is not possible (and I don't know that it is), then a link to a java applet that does this would be great as well.
0
JimV_ATL
Asked:
JimV_ATL
  • 6
  • 2
1 Solution
 
thanassisCommented:
0
 
gphCommented:
<html>
<head>
<title></title>
<script>
onload = function() {
var objXL = new ActiveXObject("Excel.Application")
alert(objXL.Build)
objXL.Quit()
}
</script>
</head>
<body>
</body>
</html>

Obviously IE only.  Really only works localy.  Can also be done with VBScript
0
 
gphCommented:
Here's how it looks in VBScript.

<html>
<head>
<title></title>
<script language="VBScript">
Dim objXL,Object
Set objXL = CreateObject("Excel.Application")
MsgBox(objXL.Build)
Set objXL = Nothing
</script>
</head>
<body>
</body>
</html>

0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
gphCommented:
If you're going to use this, go with the JS.  MS has decided to drop VBScript.
0
 
JimV_ATLAuthor Commented:
Thanks! Perfect.  I guessed that there was a property of excel.application called version, so that worked even better.  

I have a follow up to the question here:

http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20553560.html
0
 
gphCommented:
I just caught what you ment by version. I got Build from a FrontPage resource.  Version makes more sense and works with FP.
0
 
gphCommented:
Found version in the resource.  My mistake.
0
 
JimV_ATLAuthor Commented:
FYI, to allow this to run on anything but the lowest Internet Exporer security setting would require an X.509 digital signature.

0
 
gphCommented:
I see, ASAIK IE installs set to medium.  Sounds like a big hurdle
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now