Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default checking office (excel) verion from VB

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default checking office (excel) verion from VB

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default checking office (excel) verion from VB


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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default checking office (excel) verion from VB

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Spell Checking with checking cell notes jfitzpat Excel Discussion (Misc queries) 0 August 8th 07 10:26 PM
Office 2000/Office 2003 Excel not printing landscape vise versa BAHTTEXT in English text Setting up and Configuration of Excel 1 April 17th 06 01:37 PM
Merging excel office data into a publisher office project(Australi Shirl New Users to Excel 0 April 16th 06 09:17 AM
Unable to access the Office Online Web site in Office 2003, Excel Marcy S Excel Discussion (Misc queries) 2 March 21st 06 09:56 PM


All times are GMT +1. The time now is 02:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"