Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Excel 2007 vba Is there a way (subroutine or API calls) to get the version of Excel that is running?

I have done some work with the ribbon as well as some 2007-only vba
constructs and need to determine the level of Excel that opened the workbook
so I may set the menu bar and command bars properly.

Something like the OBtn/resources/about.

Thanks.

...rick

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Excel 2007 vba Is there a way (subroutine or API calls) to get the version of Excel that is running?

Use

If Val(Application.Version) < 12 Then
'97-2003
Else
'2007
End If

See also
http://www.rondebruin.nl/compatiblemenu.htm


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"rick" wrote in message ...
I have done some work with the ribbon as well as some 2007-only vba
constructs and need to determine the level of Excel that opened the workbook
so I may set the menu bar and command bars properly.

Something like the OBtn/resources/about.

Thanks.

..rick

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel 2007 vba Is there a way (subroutine or API calls) to get the version of Excel that is running?


Ron de Bruin;478856 Wrote:
Use

If Val(Application.Version) < 12 Then
'97-2003
Else
'2007
End If

See also
'Dealing with Ribbons and Menus - Avoiding Two Versions'
(http://www.rondebruin.nl/compatiblemenu.htm)


--

Regards Ron de Bruin
'Ron's Excel Tips' (http://www.rondebruin.nl/tips.htm)




"rick" wrote in message
...
I have done some work with the ribbon as well as some 2007-only vba
constructs and need to determine the level of Excel that opened the

workbook
so I may set the menu bar and command bars properly.

Something like the OBtn/resources/about.

Thanks.

..rick


Hello Rick,

If you need more detail about the version, including major and minor
releases, have a look at this 'How to determine which 32-bit Windows
version is being used' (http://support.microsoft.com/kb/189249).


--
Leith Ross

Sincerely,
Leith Ross

'The Code Cage' (http://www.thecodecage.com/)
------------------------------------------------------------------------
Leith Ross's Profile: http://www.thecodecage.com/forumz/member.php?userid=75
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=132072

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
How do I save an Excel 97-2003 version or 2007 version for Mac 200 Bronigal Excel Discussion (Misc queries) 1 December 7th 09 08:04 AM
Running an excel sheet which uses RTD calls as a service? Benjamin Peikes Excel Programming 0 August 8th 08 08:12 PM
Subroutine calls between workbooks and object references [email protected] Excel Programming 0 June 15th 06 04:34 PM
OnAction calls to subroutine TerryP Excel Programming 4 November 11th 04 02:18 PM
VB code needed for running newer excel version macros in older excel versions Tom Excel Programming 6 October 16th 03 03:11 AM


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

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"