Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
How can i check which version of office/excel the computer is running from Visual Basic? I need this to run different macro for 97 and 2000&XP. Thanks. ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try:
Sub check() MsgBox Application.OperatingSystem ' check system MsgBox Application.Version ' check version Excel End Sub -----Original Message----- Hi, How can i check which version of office/excel the computer is running from Visual Basic? I need this to run different macro for 97 and 2000&XP. Thanks. ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ . |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() application.version Neil "BubBob" wrote in message ... Hi, How can i check which version of office/excel the computer is running from Visual Basic? I need this to run different macro for 97 and 2000&XP. Thanks. ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Bob,
Hope this helps: Option Explicit Private strVersion As String Sub ThisVersion() strVersion = Application.Version Select Case strVersion Case "8.0" MsgBox "Excel " & strVersion & " therefore Office 97" Case "9.0" MsgBox "Excel " & strVersion & " therefore Office 2000" Case Else MsgBox "Excel " & strVersion End Select End Sub Regards, J BubBob wrote in message ... Hi, How can i check which version of office/excel the computer is running from Visual Basic? I need this to run different macro for 97 and 2000&XP. Thanks. ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Spell Checking with checking cell notes | Excel Discussion (Misc queries) | |||
Office 2000/Office 2003 Excel not printing landscape vise versa | Setting up and Configuration of Excel | |||
Merging excel office data into a publisher office project(Australi | New Users to Excel | |||
Unable to access the Office Online Web site in Office 2003, Excel | Excel Discussion (Misc queries) |