6 replies
by glen_mcleod
Here's the VBA code:
Dim lLangId As Long
lLangId = Application.LanguageSettings.LanguageID(msoLanguageIDInstall)
MsgBox Application.Languages(lLangId).Name
What you have in the lLangID variable is the actual LCID, so you could make your decision on that instead of the .Name property.
Glen
by tekkalan
by sl-campbell
The following 2 items will return the language name and ID:
MsgBox Application.Languages(Selection.LanguageID).Name
MsgBox Application.Languages(Selection.LanguageID).Id
by sl-campbell
Ok. Script - read too fast!
In addition to #1 you can use the constants listed here to compare the LanguageID to:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/off2000/html/woproLanguageID.asp
(remove any spaces)
for instance:
If LanguageID = wdFrench Then
by tekkalan
by tekkalan
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending