LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Determining Language Version of Excel

A quick quesion:

Is there an easy way of determining the language version of Excel?

I am trying to fix up an app in Excel that includes the following line of
code:

Application.CommandBars("Tools").Controls("Protect ion").Enabled = False

This is used to prevent users from switching off protection (please no
comments on the method used - it is not my app, I've just been asked to fix
it).

The problem is that a few users have the German version of Excel and the
commands ("Tools" and "Protection") have different names.

I'd like to determine the language version of Excel and run the line above
(it its English) or a line using the German terms (if it is German).

I'm not confident about using the index values of the items in case the
menus have been modified at all. If there is some other method of specifying
the controls (that is not language/version specific) I'd be interested in
hearing about it.

Thanks

Paul

--
Visit my website www.pdtech.co.uk for Access Developer Resources


 
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
date format code in national language version Stefi Excel Discussion (Misc queries) 4 July 21st 08 09:18 AM
error in Pivot table in different language version jiang Excel Discussion (Misc queries) 1 January 24th 07 10:06 AM
Insertion of formulas in foreign language in english version of ex Pedro Excel Discussion (Misc queries) 0 May 3rd 06 12:48 AM
language version excel masterflasher[_2_] Excel Programming 1 September 16th 04 02:20 PM
Determining Office Version [email protected] Excel Programming 7 January 26th 04 03:31 PM


All times are GMT +1. The time now is 03:44 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"