Windows language

  • Thread starter Jean-Guy Marcil
  • Start date
J

Jean-Guy Marcil

Hi all,

I need to know the Windows Interface language (Not the language users can
set through the Control Panel in the regional settings).
The goal is to create a Word document that will ask the user to fill out
some info through a userform, and then save it as an HTML document in the
appropriate folder so that the HTML document will appear in the Outlook
stationery list.

Will
Public Declare Function GetUserDefaultUILanguage Lib "kernel32" () As
Long
return the OS language?

If so, I can do something like:

If GetUserDefaultUILanguage = 1033 Then 'English
SavePath = Environ$("userprofile") & "\Application
Data\Microsoft\Stationery\"
Else
SavePath = Environ$("userprofile") & "\Application Data\Microsoft\Papier
à Lettres\"
End If

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top