IT-Academy

Verzie Excelu

Apr 19th, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Sub zistiVerziuExcelu()
  2.     If Application.Version = "16.0" Then
  3.         Debug.Print "Pouzivate Microsoft Excel 2016."
  4.     ElseIf Application.Version = "15.0" Then
  5.         Debug.Print "Pouzivate Microsoft Excel 2013."
  6.     ElseIf Application.Version = "14.0" Then
  7.         Debug.Print "Pouzivate Microsoft Excel 2010."
  8.     ElseIf Application.Version = "12.0" Then
  9.         Debug.Print "Pouzivate Microsoft Excel 2007."
  10.     ElseIf Application.Version = "11.0" Then
  11.         Debug.Print "Pouzivate Microsoft Excel 2003."
  12.     ElseIf Application.Version = "9.0" Then
  13.         Debug.Print "Pouzivate Microsoft Excel 2000."
  14.     ElseIf Application.Version = "8.0" Then
  15.         Debug.Print "Pouzivate Microsoft Excel 97."
  16.     ElseIf Application.Version = "7.0" Then
  17.         Debug.Print "Pouzivate Microsoft Excel 95."
  18.     End If
  19. End Sub
Advertisement
Add Comment
Please, Sign In to add comment