Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Detecting Excel 97 using VBA

Hi. I need to detect, in a VBA script, if it is executed by Excel 97. How do
I do that?

Casper


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 56
Default Detecting Excel 97 using VBA

Hi Casper
Application.Version which will return a string value (8.0 for Excel 97)

HTH
Cordially
Pascal

"Casper Hornstrup" a écrit dans le message de
...
Hi. I need to detect, in a VBA script, if it is executed by Excel 97. How

do
I do that?

Casper




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 227
Default Detecting Excel 97 using VBA

Hi Casper

Sub WhichVersion()
MsgBox "Excel Version " & Application.Version
End Sub

Excel 97 is, I believe, Version 8.
--

XL2002
Regards

William



"Casper Hornstrup" wrote in message
...
| Hi. I need to detect, in a VBA script, if it is executed by Excel 97. How
do
| I do that?
|
| Casper
|
|


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Detecting Excel 97 using VBA

MsgBox "You're running Excel version " & Application.Version

It returns 10.0 for XP, what I'm running. I'm not sure what 97 will be
I'd guess 8.0, assuming that Office 2000 was version 9.0.

-Gitcyphe

--
Message posted from http://www.ExcelForum.com

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default Detecting Excel 97 using VBA

Casper,

Be sure to be able to sense "8.0a" for Excel97 with SR-1. I think 8.0b is
SR-2, which I installed on my old Excel97 machine, but Help - About says
SR-1, and Application.Version returns 8.0a. Oh well. Anyway, something
like:

If Left(Application.Version, 3) = "8.0" then...
--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

"Casper Hornstrup" wrote in message
...
Hi. I need to detect, in a VBA script, if it is executed by Excel 97. How

do
I do that?

Casper




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
Detecting version of Excel being used jim37055 Excel Discussion (Misc queries) 3 October 6th 05 03:55 PM
Excel not detecting that a file is currently being edited cds_tech Excel Discussion (Misc queries) 1 June 27th 05 09:06 PM
other systems detecting excel 4.0 if excel 2000 is installed Tristan_Flynn Setting up and Configuration of Excel 0 January 18th 05 06:55 PM
EXCEL PIVOT TABLES DETECTING EVENTS Gary B[_4_] Excel Programming 0 February 11th 04 01:00 AM
Detecting non-supported files using Excel.Open [email protected] Excel Programming 0 October 29th 03 11:48 PM


All times are GMT +1. The time now is 06:33 PM.

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"