Excel Version in VBA

  • Thread starter Thread starter Jon
  • Start date Start date
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
 
Back
Top