#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Registry

You might want to modify the check to

IF val(application.Version ) = 8 then

or
if clng(Left(application.Version,instr(application.Ve rsion,".")-1)) = 8 then

because in xl97, application.Version can return something like 8.0e

Regards,
Tom Ogilvy


"Mike" wrote in message
...
If you are trying to find the version of Excel, use the
function Application.Version.

If Application.Version = 8 Then
Sheets("Sheet1").Select
Else
Sheets("Sheet2").Select
End If

-----Original Message-----
Can someone advise on the code to check the registry
flag browser (value=8) in
MyComputer\HKey_Current_User\Software\Microsoft\O ffice\8.0
\Excel

i want the code to detect the value and then if it is 8
to select Sheet 1 and if it isn't 8 to select Sheet 2

thank you
.



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Registry

Now I have a version of Excel 97 handy,
from the immediate window

? application.Version
8.0e


? val(application.Version)
8


Regards,
Tom Ogilvy


Tom Ogilvy wrote in message
...
You might want to modify the check to

IF val(application.Version ) = 8 then

or
if clng(Left(application.Version,instr(application.Ve rsion,".")-1)) = 8

then

because in xl97, application.Version can return something like 8.0e

Regards,
Tom Ogilvy


"Mike" wrote in message
...
If you are trying to find the version of Excel, use the
function Application.Version.

If Application.Version = 8 Then
Sheets("Sheet1").Select
Else
Sheets("Sheet2").Select
End If

-----Original Message-----
Can someone advise on the code to check the registry
flag browser (value=8) in
MyComputer\HKey_Current_User\Software\Microsoft\O ffice\8.0
\Excel

i want the code to detect the value and then if it is 8
to select Sheet 1 and if it isn't 8 to select Sheet 2

thank you
.





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
Managing add-ins via the registry Athos Setting up and Configuration of Excel 0 February 5th 09 01:00 PM
howToSsaveFile type that is blocked by registry xls to w4k Syl Excel Discussion (Misc queries) 1 February 14th 08 08:16 PM
Another checkbook registry problem... LJB Jazz Excel Worksheet Functions 5 August 13th 06 02:53 PM
XP windows Registry Question saziz Excel Discussion (Misc queries) 1 June 11th 06 02:25 AM
Registry Patrick Molloy[_4_] Excel Programming 0 July 15th 03 12:45 PM


All times are GMT +1. The time now is 10:12 AM.

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

About Us

"It's about Microsoft Excel"