Excel Version in VBA

  • Thread starter Thread starter Jon
  • Start date Start date
J

Jon

Is there a way, using VBA, to determine the version of Excel that is
running?
 
Jon said:
Is there a way, using VBA, to determine the version of Excel that is
running?

This is from the help file ...

MsgBox "Welcome to Microsoft Excel version " & _
Application.Version & " running on " & _
Application.OperatingSystem & "!"
 
Someone in the group gave me this a while back when I had 4 versions of
excel on my computer and couldn't remember which one I had open...........it
puts the "version" in the upper title bar..........

Sub Auto_open()
With Application
Select Case Val(.Version)
Case 10: .Caption = .Name & " 2002"
Case 9: .Caption = .Name & " 2000"
Case 8: .Caption = .Name & " 97"
Case 7: .Caption = .Name & " 95"
End Select
End With
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top