View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Peter T Peter T is offline
external usenet poster
 
Posts: 5,600
Default How to know the windows language

Not sure if it will help you but have a look at LanguageSettings in help,
also the intellisence

Dim LS As LanguageSettings
Set LS = Application.LanguageSettings

nInstall = LS.LanguageID(msoLanguageIDInstall)
nDUI = LS.LanguageID(msoLanguageIDUI)
bool = LS.LanguagePreferredForEditing(msoLanguageIDFrench Canadian)

also perhaps -

nCS = application.International(xlCountrySetting)
and various other relevant default formatting info that can be changed in
say the Normal style of a workbook if necessary.

Regards,
Peter T


"Alex St-Pierre" wrote in message
...
Hi,
I'm wondering if there's a way to know what is the windows language
installed inside the computer where the macro is runned. I tried to find a
parameter inside GetLocaleInfo function but all seems to be related to
control panel settings. Any idea?
Thanks!
Alex
--
Alex St-Pierre