PC Review


Reply
Thread Tools Rate Thread

Determine if the Excel Version is 2007 or previous

 
 
Subodh
Guest
Posts: n/a
 
      25th Apr 2010
I want to determine if the user has Excel Version 2007 or previous
one.
If the version is 2007 then i want to run one code
else the other one
I tried Application.version but it gave 12 as the version number for
Excel 2007
I want to do the following

If application version is 2007 then
.......................
...............run this code
else if previous version
...........
............. run this code
end if
 
Reply With Quote
 
 
 
 
Roger Govier
Guest
Posts: n/a
 
      25th Apr 2010
Hi

You need

If Val(Appication.version) = 12 Then
some code
Elae
Some other code
End if
--
Regards
Roger Govier

Subodh wrote:
> I want to determine if the user has Excel Version 2007 or previous
> one.
> If the version is 2007 then i want to run one code
> else the other one
> I tried Application.version but it gave 12 as the version number for
> Excel 2007
> I want to do the following
>
> If application version is 2007 then
> ......................
> ..............run this code
> else if previous version
> ..........
> ............ run this code
> end if

 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      25th Apr 2010
.... or with 2010 just around the corner

If Val(AppLication.version) >= 12 Then

Regards,
Peter T


"Roger Govier" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi
>
> You need
>
> If Val(Appication.version) = 12 Then
> some code
> Elae
> Some other code
> End if
> --
> Regards
> Roger Govier
>
> Subodh wrote:
>> I want to determine if the user has Excel Version 2007 or previous
>> one.
>> If the version is 2007 then i want to run one code
>> else the other one
>> I tried Application.version but it gave 12 as the version number for
>> Excel 2007
>> I want to do the following
>>
>> If application version is 2007 then
>> ......................
>> ..............run this code
>> else if previous version
>> ..........
>> ............ run this code
>> end if



 
Reply With Quote
 
Roger Govier
Guest
Posts: n/a
 
      25th Apr 2010
Quite right, Peter!
Far too blinkered a view on my part.
(Might also help if I could spell "else")
--
Regards
Roger Govier

Peter T wrote:
> ... or with 2010 just around the corner
>
> If Val(AppLication.version) >= 12 Then
>
> Regards,
> Peter T
>
>
> "Roger Govier" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi
>>
>> You need
>>
>> If Val(Appication.version) = 12 Then
>> some code
>> Elae
>> Some other code
>> End if
>> --
>> Regards
>> Roger Govier
>>
>> Subodh wrote:
>>> I want to determine if the user has Excel Version 2007 or previous
>>> one.
>>> If the version is 2007 then i want to run one code
>>> else the other one
>>> I tried Application.version but it gave 12 as the version number for
>>> Excel 2007
>>> I want to do the following
>>>
>>> If application version is 2007 then
>>> ......................
>>> ..............run this code
>>> else if previous version
>>> ..........
>>> ............ run this code
>>> end if

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula link in previous version not updated in Excel 2007 DH Microsoft Excel Worksheet Functions 0 21st Oct 2009 12:44 PM
RE: Determine version of Excel in VBA Mike H Microsoft Excel Programming 0 12th May 2009 01:26 PM
How can I determine if a version of Excel 2007 is professional? Kevin Microsoft Excel Misc 2 11th Jun 2008 01:44 PM
How to get rid of 2007 ribbon, go back to previous version toolba =?Utf-8?B?c293YTI=?= Microsoft Word Document Management 2 7th Nov 2007 05:55 AM
Word 2007: Retreiving a previous version of document. =?Utf-8?B?Q2FiYnk=?= Microsoft Word Document Management 2 26th Feb 2007 07:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:49 PM.